How does Suspense know a child is doing async work? The child throws the Promise. Rebuilding that mechanism in plain JavaScript to see it clearly.


How does Suspense know a child is doing async work? The child throws the Promise. Rebuilding that mechanism in plain JavaScript to see it clearly.

Number evaluates the whole value; parseInt reads character by character and stops at the first invalid one. Which to reach for when converting a numeric string.

Keeping keyboard focus inside an open modal. A React implementation of Tab and Shift+Tab cycling, plus the IME composition bug that duplicated the last Korean character.

Mapping menu paths from the DB to page files with glob, then loading each route's component through lazy and Suspense so the router builds itself.

When JavaScript converts a string to a number, an 'e' in the string makes it exponential notation. '1e5' becomes 100,000.
