How to use react-vuex - 1 common examples

To help you get started, we’ve selected a few react-vuex examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dennybiasiolli / react-vuex / examples / todos / src / containers / AddTodo.jsx View on Github external
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

react-vuex

React bindings for Vuex

MIT
Latest version published 2 years ago

Package Health Score

48 / 100
Full package analysis

Popular react-vuex functions