(props)
| 2 | |
| 3 | class NewsletterSignupForm extends Component { |
| 4 | constructor(props) { |
| 5 | super(props); |
| 6 | this.state = { email: "", submitted: false }; |
| 7 | this.handleChange = this.handleChange.bind(this); |
| 8 | } |
| 9 | |
| 10 | handleChange(event) { |
| 11 | this.setState({ [event.target.name]: event.target.value }); |
nothing calls this directly
no outgoing calls
no test coverage detected