Home / File/ ReplaceEmailInput.js — react Source File

ReplaceEmailInput.js — react Source File

Architecture documentation for ReplaceEmailInput.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
  64a4651a_a77b_7f25_e03a_f6b1e131448a["ReplaceEmailInput.js"]
  bc8ae172_cc20_3692_943c_bbdb1ad34855["Fixture.js"]
  64a4651a_a77b_7f25_e03a_f6b1e131448a --> bc8ae172_cc20_3692_943c_bbdb1ad34855
  2851624d_a736_f3f6_2132_5a20630983fe["Fixture"]
  64a4651a_a77b_7f25_e03a_f6b1e131448a --> 2851624d_a736_f3f6_2132_5a20630983fe
  a3aeab4c_4f93_b8d8_01c2_7a351a28a3fb["Fixture"]
  64a4651a_a77b_7f25_e03a_f6b1e131448a --> a3aeab4c_4f93_b8d8_01c2_7a351a28a3fb
  1d9eef82_a8e2_98f5_d838_60291fc890b8["index.js"]
  1d9eef82_a8e2_98f5_d838_60291fc890b8 --> 64a4651a_a77b_7f25_e03a_f6b1e131448a
  style 64a4651a_a77b_7f25_e03a_f6b1e131448a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import Fixture from '../../Fixture';

const React = window.React;

class ReplaceEmailInput extends React.Component {
  state = {
    formSubmitted: false,
  };

  onReset = () => {
    this.setState({formSubmitted: false});
  };

  onSubmit = event => {
    event.preventDefault();
    this.setState({formSubmitted: true});
  };

  render() {
    return (
      <Fixture>
        <form className="control-box" onSubmit={this.onSubmit}>
          <fieldset>
            <legend>Email</legend>
            {!this.state.formSubmitted ? (
              <input type="email" />
            ) : (
              <input type="text" disabled={true} />
            )}
          </fieldset>
        </form>
        <button type="button" onClick={this.onReset}>
          Reset
        </button>
      </Fixture>
    );
  }
}

export default ReplaceEmailInput;

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free