I have a large react-redux based application in development. I'd like to add some utility functions to a js script that does not contain a react component to "connect" to. How do I access the state in react-redux without a component? Neither mapStateToProps
nor mapDispatchToProps
are available - do I need to export the state object from the top-level index.js file? Seems dangerous.
Suggestions welcome!
JB