Architecture

Route state ownership

Place shared route display state near its consumers.

Formal Syntax & Structure

react syntaxreact
useState("all")

Working Example

Example Snippetreact
const [status, setStatus] = useState("all");
React Reference