# Function useStore

- useStore<State, Action>(): Store<State, Action>

- A hook to access the redux store.

  #### Type Parameters

  - State = unknown
  - Action extends Action<any> = AnyAction

  #### 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>
      }

  - Defined in common/temp/node_modules/.pnpm/react-redux@8.1.3_91ee3f21853aee6f4038f22086c31182/node_modules/react-redux/es/hooks/useStore.d.ts:26