Quick Tip - Memoizing change handlers in React Components
Let's consider a basic form with a controlled component in react: class Form extends React.Component { state = { value: '', }; handleChange = e => { this.setState({ value: e.target.value, }); }; render() { return ( ...
Oct 1, 20183 min read161