Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export default class UnleashedOne extends React.Component {
- constructor(props) {
- super(props);
- this.onChange = this.onChange.bind(this);
- }
- onChange(e) {
- this.props.onChange(e.target.value);
- }
- render () {
- return (
- <input onChange={this.onChange}/>
- );
- }
- }
Add Comment
Please, Sign In to add comment