Skip to content

Instantly share code, notes, and snippets.

/RadioControl Secret
Created Feb 5, 2018

Embed
What would you like to do?
RadioControl
<RadioControl
label="radio Control"
selected={this.attributes.selected === instanceId}
help=
onChange= {(e) => this.setState({ selected: e.target.instanceId })}
options= radioOptions
/>
@youknowriad

This comment has been minimized.

Copy link

youknowriad commented Feb 5, 2018

This should be something like

<RadioControl
      label="radio Control"
      selected={this.state.selected}
      help="This is just a help text"
      onChange= {(selected) => this.setState({ selected })}
      options= radioOptions
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.