EmailAttributesTestCase Class — react Architecture
Architecture documentation for the EmailAttributesTestCase class in EmailEnabledAttributesTestCase.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 5510cb4c_4cac_8c9a_1918_d2752c6c0066["EmailAttributesTestCase"] d330a9a1_820d_76e5_e7a6_5ada0e01052a["EmailEnabledAttributesTestCase.js"] 5510cb4c_4cac_8c9a_1918_d2752c6c0066 -->|defined in| d330a9a1_820d_76e5_e7a6_5ada0e01052a 7e4a9533_db62_b821_c7b6_5631ab262da9["render()"] 5510cb4c_4cac_8c9a_1918_d2752c6c0066 -->|method| 7e4a9533_db62_b821_c7b6_5631ab262da9
Relationship Graph
Source Code
fixtures/dom/src/components/fixtures/email-inputs/EmailEnabledAttributesTestCase.js lines 5–46
class EmailAttributesTestCase extends React.Component {
state = {value: 'a@fb.com'};
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="email"
pattern=".+@fb.com"
maxlength={17}
multiple={true}
value={this.state.value}
onChange={this.onChange}
/>
<span className="hint">
{' '}
Value: {JSON.stringify(this.state.value)}
</span>
</fieldset>
<fieldset>
<legend>Uncontrolled</legend>
<input
type="email"
defaultValue=""
pattern=".+@fb.com"
maxlength={17}
multiple={true}
/>
</fieldset>
</div>
</Fixture>
);
}
}
Domain
Source
Frequently Asked Questions
What is the EmailAttributesTestCase class?
EmailAttributesTestCase is a class in the react codebase, defined in fixtures/dom/src/components/fixtures/email-inputs/EmailEnabledAttributesTestCase.js.
Where is EmailAttributesTestCase defined?
EmailAttributesTestCase is defined in fixtures/dom/src/components/fixtures/email-inputs/EmailEnabledAttributesTestCase.js at line 5.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free