Concepts

Returning null

Return no visible nodes from this component render; this alone does not remove the component from its parent tree.

Formal Syntax & Structure

react syntaxreact
return null;

Working Example

Example Snippetreact
function Note({ hidden }) { if (hidden) return null; return <p>Ready</p>; }
React Reference