handleChange(event) {
    const { name, value, checked } = event.target
    name === 'privacy'
      ? this.setState({ [name]: checked })
      : this.setState({ [name]: value })
  }
// Use the submitted data to set the state
Use the submitted data to set the state
Use the submitted data to set the state
handleChange(event) {
    const { name, value, checked } = event.target
    name === 'privacy'
      ? this.setState({ [name]: checked })
      : this.setState({ [name]: value })
  }
handleChange ( event ) { const { name , value , checked } = event . target name === 'privacy' ? this . setState ( { [ name ] : checked } ) : this . setState ( { [ name ] : value } ) }
Use the submitted data to set the state
Use the submitted data to set the state