# Type alias SetRecoilState

SetRecoilState: (<T>(recoilVal, newVal) => void)

#### Type declaration

- - <T>(recoilVal, newVal): void

  - #### Type Parameters

    - T

    #### Parameters

    - recoilVal: RecoilState<T>
    - newVal: T | DefaultValue | ((prevValue) => T | DefaultValue)

    #### Returns void

- 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:171