# Function createSelectorHook

- createSelectorHook(context?): UseSelector

- Hook factory, which creates a `useSelector` hook bound to a given context.

  #### Parameters

  - `Optional` context: Context<ReactReduxContextValue<any, AnyAction>>

    Context passed to your `<Provider>`.

  #### Returns UseSelector

  A `useSelector` hook bound to the specified context.

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