import * as React from 'react' ; export default ( props ) => ( < form onSubmit = { e => { e . preventDefault ( ) ; props . handleSubmit ( ) ; } } > < input type = "text" value = { props . inputValue } onChange = { ( e ) => props . handleInputChange ( e . target . value ) } /> < button > addTodo < /button> < /form>);