Skip to content

Instantly share code, notes, and snippets.

/RadioControl Secret

Created February 5, 2018 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/170a1b12ad39cb1fb417ea1a2738b4f3 to your computer and use it in GitHub Desktop.
Save anonymous/170a1b12ad39cb1fb417ea1a2738b4f3 to your computer and use it in GitHub Desktop.
RadioControl
<RadioControl
label="radio Control"
selected={this.attributes.selected === instanceId}
help=
onChange= {(e) => this.setState({ selected: e.target.instanceId })}
options= radioOptions
/>
@youknowriad
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