I saw this piece of code in React, for example
connect(mapStateToProps, { test: () => {return { type: 'TEST_ACTION' }} })(Index);
but I could not explain any explanation to Google. The question is probably a dumb question, but I appreciate any help, perhaps links to some existing explanations or examples.
source share