import React from 'react';
class ItemInput extends React.Component{
//Will call function in DynamicTodoList to add items
render(){
return(
);
}
constructor(props) {
super(props);
this.state = {inputtext: ''};
}
handleFormChange(e) {
this.setState({inputtext: e.target.value});
}
handleFormSubmit(e) {
this.props.addfunc(this.state.inputtext);
e.preventDefault();
}
}
export default ItemInput