+1 vote
in Redux by
How to access redux store outside a react component?

1 Answer

0 votes
by
You can export the store from the module you called createStore.

//Store.js

const store = createStore(Reducer);

export default store;

//Client.js

import store from './Store'

store.dispatch(action);

Related questions

0 votes
asked Feb 23, 2021 in ReactJS by SakshiSharma
0 votes
asked Mar 5, 2022 in ReactJS by DavidAnderson
...