When I use the onChange function as shown in the documentation, onChange = chips => { this.setState({ chips }); } the value of chips is undefined.