React Compiler
use memo directive
Function prologue directive requesting compiler optimization; not a guarantee of success.
Formal Syntax & Structure
react syntaxreact
function Count(){ "use memo"; return null; }Working Example
Example Snippetreact
function Count(){ "use memo"; return null; }