Last active
October 20, 2016 13:25
-
-
Save kooparse/2fd213fed4d97b80978c7028816389ac to your computer and use it in GitHub Desktop.
For David
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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