Building a store with useSyncExternalStore
Comes up in: React, Coding
This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.
What it covers
- subscribe/getSnapshot
- selector with equality
- avoiding tearing
- how Zustand works internally
Words you will know
What you will practise
- implement a 30-line Zustand clone
Interview questions this answers
- Build a tiny global store with
useSyncExternalStore.