MCPcopy Create free account
hub / github.com/kenberkeley/react-demo / constructor

Method constructor

src/components/Todo/TodoInput.js:5–9  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

3
4export default class TodoInput extends Component {
5 constructor (props) {
6 super(props)
7 this.state = { inputVal: '' }
8 this.handleChange = handleChange.bind(this)
9 }
10
11 handleSubmit () {
12 let content = this.state.inputVal.trim()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected