Home / File/ ControlledFormFixture.js — react Source File

ControlledFormFixture.js — react Source File

Architecture documentation for ControlledFormFixture.js, a javascript file in the react codebase. 3 imports, 1 dependents.

File javascript BabelCompiler Entrypoint 3 imports 1 dependents 1 classes

Entity Profile

Dependency Diagram

graph LR
  94fc7e87_06ae_cde8_c174_2ca690027179["ControlledFormFixture.js"]
  bc8ae172_cc20_3692_943c_bbdb1ad34855["Fixture.js"]
  94fc7e87_06ae_cde8_c174_2ca690027179 --> bc8ae172_cc20_3692_943c_bbdb1ad34855
  2851624d_a736_f3f6_2132_5a20630983fe["Fixture"]
  94fc7e87_06ae_cde8_c174_2ca690027179 --> 2851624d_a736_f3f6_2132_5a20630983fe
  a3aeab4c_4f93_b8d8_01c2_7a351a28a3fb["Fixture"]
  94fc7e87_06ae_cde8_c174_2ca690027179 --> a3aeab4c_4f93_b8d8_01c2_7a351a28a3fb
  86f24308_7a2e_fd8e_db30_3806304dcca0["index.js"]
  86f24308_7a2e_fd8e_db30_3806304dcca0 --> 94fc7e87_06ae_cde8_c174_2ca690027179
  style 94fc7e87_06ae_cde8_c174_2ca690027179 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import Fixture from '../../Fixture';
const React = window.React;

class ControlledFormFixture extends React.Component {
  constructor(props) {
    super(props);
    this.state = {name: '', email: ''};

    this.handleEmailChange = this.handleEmailChange.bind(this);
    this.handleNameChange = this.handleNameChange.bind(this);
  }

  handleEmailChange(event) {
    this.setState({email: event.target.value});
  }

  handleNameChange(event) {
    this.setState({name: event.target.value});
  }

  render() {
    return (
      <Fixture>
        <form>
          <label>
            Name:
            <input
              type="text"
              value={this.state.name}
              onChange={this.handleNameChange}
              name="name"
              x-autocompletetype="name"
            />
          </label>
          <br />
          <label>
            Email:
            <input
              type="text"
              value={this.state.email}
              onChange={this.handleEmailChange}
              name="email"
              x-autocompletetype="email"
            />
          </label>
        </form>
        <br />
        <div>
          <span>States</span>
          <br />
          <span>Name: {this.state.name}</span>
          <br />
          <span>Email: {this.state.email}</span>
        </div>
      </Fixture>
    );
  }
}

export default ControlledFormFixture;

Domain

Subdomains

Frequently Asked Questions

What does ControlledFormFixture.js do?
ControlledFormFixture.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Entrypoint subdomain.
What does ControlledFormFixture.js depend on?
ControlledFormFixture.js imports 3 module(s): Fixture, Fixture, Fixture.js.
What files import ControlledFormFixture.js?
ControlledFormFixture.js is imported by 1 file(s): index.js.
Where is ControlledFormFixture.js in the architecture?
ControlledFormFixture.js is located at fixtures/dom/src/components/fixtures/form-state/ControlledFormFixture.js (domain: BabelCompiler, subdomain: Entrypoint, directory: fixtures/dom/src/components/fixtures/form-state).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free