Skip to content

Instantly share code, notes, and snippets.

Created Aug 16, 2017
What would you like to do?
class App extends Component {
constructor() {
this.state = {name: 'Say my name'}
handleName(newName) {
this.setState({ name: newName});
render() {
return (
<div className="App">
<Child name={} onNameChange={this.handleName.bind(this)}/>
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment