# Interface ForwardRefRenderFunction<T, P>

The type of the function passed to forwardRef. This is considered different to a normal FunctionComponent because it receives an additional argument,

#### See

- React TypeScript Cheatsheet
- forwardRef

interface ForwardRefRenderFunction<T, P> {
defaultProps?: undefined;
displayName?: string;
propTypes?: undefined;
(props, ref): ReactNode;
}

#### Type Parameters

- T

  The type of the forwarded ref.

- P = {}

  The type of the props the component accepts.

- ForwardRefRenderFunction(props, ref): ReactNode

- #### Parameters

  - props: P
  - ref: ForwardedRef<T>

  #### Returns ReactNode

  - Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:1240

#####
Index

### Properties

defaultProps?
displayName?
propTypes?

## Properties

### `Optional` defaultProps

defaultProps?: undefined

defaultProps are not supported on render functions passed to forwardRef.

#### See

- linked GitHub issue for context
- React Docs

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:1258

### `Optional` displayName

displayName?: string

Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.

Will show `ForwardRef(${Component.displayName || Component.name})` in devtools by default, but can be given its own specific name.

#### See

Legacy React Docs

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:1251

### `Optional` propTypes

propTypes?: undefined

propTypes are not supported on render functions passed to forwardRef.

#### See

- linked GitHub issue for context
- React Docs

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:1265