# Function selector

- selector<T>(options): RecoilState<T>

- Creates a selector which represents derived state.

  #### Type Parameters

  - T

  #### Parameters

  - options: ReadWriteSelectorOptions<T>

  #### Returns RecoilState<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:219
- selector<T>(options): RecoilValueReadOnly<T>

- #### Type Parameters

  - T

  #### Parameters

  - options: ReadOnlySelectorOptions<T>

  #### Returns RecoilValueReadOnly<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:220