as mentioned above, I saved a variable An in store, and now I use this variable in the component (implemented). Finally, I want to update this variable An in this component. Please write a simple code ~ ....
Code one: import { addTodo } from . actionCreators import { bindActionCreators } from redux function mapStateToProps(state) { return { todos: state.todos } } function mapDispatchToProps(dispatch) { return bindActionCreators({ addTodo }, d...
original array, array is not fixed, there may be multiple, id and name are different, sid can be the same (the same belongs to the same category) var arr = [ { "id": "1", "sid": "mm", "name": "...