To access the redux stores outside a react component, you need to export the store from the module where it has been created with createStore.

NOTE: If you are looking for React Native Interview Questions then you can visit here.

BY Best Interview Question ON 31 May 2021

Example

store = createStore(myReducer);
export default store;