Engrain by ByteRush

RCT.12.04 Mid-levelCore — asked often

useLocalStorage, useMediaQuery, useOnlineStatus

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

  • SSR-safe initial value
  • JSON parse errors
  • cross-tab storage event
  • useSyncExternalStore for browser APIs

Words you will know

—

What you will practise

  • implement 3 hooks

Interview questions this answers

  • Implement useLocalStorage that syncs across tabs.