DEV Community

loading...

Discussion on: Fast & easy... React states management in one function

Collapse
patroza profile image
Patrick Roza

Or just valueChange = key => e => this.setState({[key]: e.target.value})