index.js — react Source File
Architecture documentation for index.js, a javascript file in the react codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 4d41189b_fce4_6ba5_b7d2_4761097dfcea["index.js"] 43315ad6_972b_89f2_a26c_ae2c6075675a["FixtureSet.js"] 4d41189b_fce4_6ba5_b7d2_4761097dfcea --> 43315ad6_972b_89f2_a26c_ae2c6075675a f3e4d030_5f7e_b1af_0ae5_fcdf80961e8c["FixtureSet"] 4d41189b_fce4_6ba5_b7d2_4761097dfcea --> f3e4d030_5f7e_b1af_0ae5_fcdf80961e8c 14dde3c9_48ef_6e34_3667_978d06aff15d["TestCase.js"] 4d41189b_fce4_6ba5_b7d2_4761097dfcea --> 14dde3c9_48ef_6e34_3667_978d06aff15d e1e356f5_b085_dad5_a81f_4b4844381311["TestCase"] 4d41189b_fce4_6ba5_b7d2_4761097dfcea --> e1e356f5_b085_dad5_a81f_4b4844381311 style 4d41189b_fce4_6ba5_b7d2_4761097dfcea fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import FixtureSet from '../../FixtureSet';
import TestCase from '../../TestCase';
const React = window.React;
const ReactDOM = window.ReactDOM;
class SelectFixture extends React.Component {
state = {value: ''};
_nestedDOMNode = null;
_singleFormDOMNode = null;
_multipleFormDOMNode = null;
onChange = event => {
this.setState({value: event.target.value});
};
resetSingleOptionForm = event => {
event.preventDefault();
this._singleFormDOMNode.reset();
};
resetMultipleOptionForm = event => {
event.preventDefault();
this._multipleFormDOMNode.reset();
};
componentDidMount() {
this._renderNestedSelect();
}
componentDidUpdate() {
this._renderNestedSelect();
}
_renderNestedSelect() {
ReactDOM.render(
<select value={this.state.value} onChange={this.onChange}>
<option value="">Select a color</option>
<option value="red">Red</option>
<option value="blue">Blue</option>
<option value="green">Green</option>
</select>,
this._nestedDOMNode
);
}
render() {
return (
<FixtureSet title="Selects">
<form className="field-group">
<fieldset>
<legend>Controlled</legend>
<select value={this.state.value} onChange={this.onChange}>
<option value="">Select a color</option>
<option value="red">Red</option>
<option value="blue">Blue</option>
<option value="green">Green</option>
</select>
<span className="hint">Value: {this.state.value}</span>
</fieldset>
// ... (179 more lines)
Domain
Subdomains
Classes
Dependencies
Source
Frequently Asked Questions
What does index.js do?
index.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Entrypoint subdomain.
What does index.js depend on?
index.js imports 4 module(s): FixtureSet, FixtureSet.js, TestCase, TestCase.js.
Where is index.js in the architecture?
index.js is located at fixtures/dom/src/components/fixtures/selects/index.js (domain: BabelCompiler, subdomain: Entrypoint, directory: fixtures/dom/src/components/fixtures/selects).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free