noop

Commons
stable

A no-operation function that accepts no arguments and returns nothing. Used as a safe default callback placeholder where a function reference is required.

API

Signature

Full TypeScript signature sourced from the util file.

typescript

API

Return value

The value returned by this util.

Nothing. The function body is empty.

Usage

Examples

Ready-to-paste usage snippets.

Use as a default prop value

typescript