Browser APIs that expose external state and events can be wrapped with subscribe and getSnapshot.
Question 8 of 20 in useSyncExternalStore Quiz