# Function useSetRecoilState

- useSetRecoilState<T>(recoilState): SetterOrUpdater<T>

- Returns a setter function for updating Recoil state. Does not subscribe the component to the given state.

  #### Type Parameters

  - T

  #### Parameters

  - recoilState: RecoilState<T>

  #### Returns SetterOrUpdater<T>

  - Defined in common/temp/node_modules/.pnpm/recoil@0.7.7_react-dom@18.3.1+react@18.3.1/node_modules/recoil/index.d.ts:259