score:3

Accepted answer
class Child extends React.Component {
    render() {
        return (
            <input type="text" placeholder="enter text" onChange={this.props.cb} />
        );
    }
}

score:2

<input type="text" placeholder="enter text" onChange={this.props.cb} />

Related Query

More Query from same tag