Home / Class/ PasswordTestCase Class — react Architecture

PasswordTestCase Class — react Architecture

Architecture documentation for the PasswordTestCase class in PasswordTestCase.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  4d14f086_a8c4_54e2_3fab_104afe6c8837["PasswordTestCase"]
  550cdcf0_f489_fb75_cfef_d5d1948eb629["PasswordTestCase.js"]
  4d14f086_a8c4_54e2_3fab_104afe6c8837 -->|defined in| 550cdcf0_f489_fb75_cfef_d5d1948eb629
  e5e03862_94ff_c9a4_59f2_5374dac85687["render()"]
  4d14f086_a8c4_54e2_3fab_104afe6c8837 -->|method| e5e03862_94ff_c9a4_59f2_5374dac85687

Relationship Graph

Source Code

fixtures/dom/src/components/fixtures/password-inputs/PasswordTestCase.js lines 5–37

class PasswordTestCase extends React.Component {
  state = {value: ''};
  onChange = event => {
    this.setState({value: event.target.value});
  };
  render() {
    return (
      <Fixture>
        <div>{this.props.children}</div>

        <div className="control-box">
          <fieldset>
            <legend>Controlled</legend>
            <input
              type="password"
              value={this.state.value}
              onChange={this.onChange}
            />
            <span className="hint">
              {' '}
              Value: {JSON.stringify(this.state.value)}
            </span>
          </fieldset>

          <fieldset>
            <legend>Uncontrolled</legend>
            <input type="password" defaultValue="" />
          </fieldset>
        </div>
      </Fixture>
    );
  }
}

Domain

Frequently Asked Questions

What is the PasswordTestCase class?
PasswordTestCase is a class in the react codebase, defined in fixtures/dom/src/components/fixtures/password-inputs/PasswordTestCase.js.
Where is PasswordTestCase defined?
PasswordTestCase is defined in fixtures/dom/src/components/fixtures/password-inputs/PasswordTestCase.js at line 5.

Analyze Your Own Codebase

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

Try Supermodel Free