Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Add Todo
)
}
}
TodoForm.propTypes = {
onAddTodo: PropTypes.func.isRequired
}
const mapDispatchToProps = (dispatch, ownProps) => ({
onAddTodo: (value) => dispatch(addTodo(value))
})
const AddTodo = connect(
() => { },
mapDispatchToProps
)(TodoForm)
export default AddTodo