# Function useRecoilValue

- useRecoilValue<T>(recoilValue): T

- Returns the value of an atom or selector (readonly or writeable) and subscribes the components to future updates of that state.

  #### Type Parameters

  - T

  #### Parameters

  - recoilValue: RecoilValue<T>

  #### Returns 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:231