Skip to content

Instantly share code, notes, and snippets.

@kooparse
Last active October 20, 2016 13:25
Show Gist options
  • Save kooparse/2fd213fed4d97b80978c7028816389ac to your computer and use it in GitHub Desktop.
Save kooparse/2fd213fed4d97b80978c7028816389ac to your computer and use it in GitHub Desktop.
For David
import React, { Component } from 'react'
class MyComp extends Component {
select(event) {
const { value } = event.target
// Do your shit with your value
}
render() {
return (
<RadioButtonGroup name="format" defaultSelected="float32">
<RadioButton
value="pcm16"
label="16-bit PCM"
onClick={this.select}
/>
<RadioButton
value="pcm24"
label="24-bit PCM"
onClick={this.select}
/>
<RadioButton
value="float32"
label="32-bit float"
onClick={this.select}
/>
</RadioButtonGroup>
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment