MCPcopy Create free account
hub / github.com/Lobos/react-ui / constructor

Method constructor

src/RadioGroup.js:24–31  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

22
23class RadioGroup extends Component {
24 constructor (props) {
25 super(props);
26 this.state = {
27 value: transformValue(props.value),
28 data: this.formatData(props.data)
29 };
30 this.handleChange = this.handleChange.bind(this);
31 }
32
33 componentWillReceiveProps (nextProps) {
34 if (nextProps.value !== this.props.value) {

Callers

nothing calls this directly

Calls 2

formatDataMethod · 0.95
transformValueFunction · 0.85

Tested by

no test coverage detected