useStore

useStore() returns a copy of the Redux store passed to <Provider>.

This may be useful for less common scenarios requiring access to the store, such as replacing reducers.

Below, dispatching an action will not trigger a re-render of the component. In general, you should use useSelector() and useDispatch() instead.