React Compiler

Compiler-aware immutability lint

Detects unsupported mutation of immutable React inputs such as props or state.

Formal Syntax & Structure

react syntaxreact
const sorted = [...tiles].sort(compareNames);

Working Example

Example Snippetreact
const sorted = [...tiles].sort(compareNames);
React Reference