• A hook to access the redux store.

    Type Parameters

    Returns Store<State, Action>

    the redux store

    Example

    import React from 'react'
    import { useStore } from 'react-redux'

    export const ExampleComponent = () => {
    const store = useStore()
    return <div>{store.getState()}</div>
    }