Home / Class/ NumberInputDecimal Class — react Architecture

NumberInputDecimal Class — react Architecture

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

Entity Profile

Dependency Diagram

graph TD
  d4e83a55_b4e1_0a8e_9731_3067d0377e0a["NumberInputDecimal"]
  97976e93_b2ce_07f3_01b5_9261b9ac0665["NumberInputDecimal.js"]
  d4e83a55_b4e1_0a8e_9731_3067d0377e0a -->|defined in| 97976e93_b2ce_07f3_01b5_9261b9ac0665
  1c86b44c_f7d0_7d21_ea24_0969c17bdf38["render()"]
  d4e83a55_b4e1_0a8e_9731_3067d0377e0a -->|method| 1c86b44c_f7d0_7d21_ea24_0969c17bdf38

Relationship Graph

Source Code

fixtures/dom/src/components/fixtures/number-inputs/NumberInputDecimal.js lines 5–31

class NumberInputDecimal extends React.Component {
  state = {value: '.98'};
  changeValue = () => {
    this.setState({
      value: '0.98',
    });
  };
  render() {
    const {value} = this.state;
    return (
      <Fixture>
        <div>{this.props.children}</div>

        <div className="control-box">
          <input
            type="number"
            value={value}
            onChange={e => {
              this.setState({value: e.target.value});
            }}
          />
          <button onClick={this.changeValue}>change.98 to 0.98</button>
        </div>
      </Fixture>
    );
  }
}

Domain

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free