Problem Description

Subscribe to an external store without tearing using useSyncExternalStore.

Input Format

No input.

Output Format

Render a React component.

Constraints

Build a tiny store with subscribe/getSnapshot/setState.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next