RadioNameChangeFixture.js — react Source File
Architecture documentation for RadioNameChangeFixture.js, a javascript file in the react codebase. 0 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 41b01eb0_41d8_7611_eb36_f4fd0b56de8d["RadioNameChangeFixture.js"] ba53c75f_b711_f8f4_9a77_b020529fa33b["index.js"] ba53c75f_b711_f8f4_9a77_b020529fa33b --> 41b01eb0_41d8_7611_eb36_f4fd0b56de8d style 41b01eb0_41d8_7611_eb36_f4fd0b56de8d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
const React = window.React;
const noop = n => n;
class RadioNameChangeFixture extends React.Component {
state = {
updated: false,
};
onClick = () => {
this.setState(state => {
return {updated: !state.updated};
});
};
render() {
const {updated} = this.state;
const radioName = updated ? 'firstName' : 'secondName';
return (
<div>
<label>
<input
type="radio"
name={radioName}
onChange={noop}
checked={updated === true}
/>
First Radio
</label>
<label>
<input
type="radio"
name={radioName}
onChange={noop}
checked={updated === false}
/>
Second Radio
</label>
<div>
<button type="button" onClick={this.onClick}>
Toggle
</button>
</div>
</div>
);
}
}
export default RadioNameChangeFixture;
Domain
Subdomains
Functions
Classes
Source
Frequently Asked Questions
What does RadioNameChangeFixture.js do?
RadioNameChangeFixture.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Optimization subdomain.
What functions are defined in RadioNameChangeFixture.js?
RadioNameChangeFixture.js defines 1 function(s): noop.
What files import RadioNameChangeFixture.js?
RadioNameChangeFixture.js is imported by 1 file(s): index.js.
Where is RadioNameChangeFixture.js in the architecture?
RadioNameChangeFixture.js is located at fixtures/dom/src/components/fixtures/input-change-events/RadioNameChangeFixture.js (domain: BabelCompiler, subdomain: Optimization, directory: fixtures/dom/src/components/fixtures/input-change-events).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free