Created
August 29, 2018 12:05
-
-
Save kocisov/1911c352400f4dd7d279795d7235f7c2 to your computer and use it in GitHub Desktop.
Hidden message of this gist is: Alec where is my green sword?
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, { PureComponent } from 'react' | |
export default class extends PureComponent { | |
state = { | |
killCount: 0, | |
ytLink: '' | |
} | |
handleChange = (event) => { | |
this.setState({ | |
[event.target.name]: event.target.value | |
}) | |
} | |
render() { | |
return [ | |
<input key="0" type="text" name="ytLink" onChange={this.handleChange} />, | |
<input key="1" type="text" name="killCount" onChange={this.handleChange} />, | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment