(props)
| 4 | |
| 5 | class App extends React.Component { |
| 6 | constructor(props) { |
| 7 | super(props); |
| 8 | |
| 9 | this._addNewTag = this._addNewTag.bind(this); |
| 10 | this.state = { |
| 11 | tags: ['JavaScript', 'CSS' ], |
| 12 | newTag: null |
| 13 | }; |
| 14 | } |
| 15 | _addNewTag() { |
| 16 | this.setState({ newTag: this.refs.field.value }); |
| 17 | } |
no outgoing calls
no test coverage detected