What is useSyncExternalStore?
0:11
useSyncExternalStore is a hook designed for libraries that integrate with external state sources. It lets React subscribe to the store and read its current value in a way that is safe with concurrent rendering and prevents tearing.