OnSelectIframe Class — react Architecture
Architecture documentation for the OnSelectIframe class in OnSelectEventTestCase.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 3166a7e5_814f_7128_674d_ebd635790133["OnSelectIframe"] 7680536c_c07f_3727_61d8_e447a4d8d88e["OnSelectEventTestCase.js"] 3166a7e5_814f_7128_674d_ebd635790133 -->|defined in| 7680536c_c07f_3727_61d8_e447a4d8d88e 03c9006e_a44a_bfa5_5b4a_dfaec082f89a["render()"] 3166a7e5_814f_7128_674d_ebd635790133 -->|method| 03c9006e_a44a_bfa5_5b4a_dfaec082f89a
Relationship Graph
Source Code
fixtures/dom/src/components/fixtures/selection-events/OnSelectEventTestCase.js lines 5–30
class OnSelectIframe extends React.Component {
state = {count: 0, value: 'Select Me!'};
_onSelect = event => {
this.setState(({count}) => ({count: count + 1}));
};
_onChange = event => {
this.setState({value: event.target.value});
};
render() {
const {count, value} = this.state;
return (
<Iframe height={60}>
Selection Event Count: {count}
<input
type="text"
onSelect={this._onSelect}
value={value}
onChange={this._onChange}
/>
</Iframe>
);
}
}
Domain
Source
Frequently Asked Questions
What is the OnSelectIframe class?
OnSelectIframe is a class in the react codebase, defined in fixtures/dom/src/components/fixtures/selection-events/OnSelectEventTestCase.js.
Where is OnSelectIframe defined?
OnSelectIframe is defined in fixtures/dom/src/components/fixtures/selection-events/OnSelectEventTestCase.js at line 5.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free