Q 01/05
A) It is reserved in JavaScript
B) It is a CSS-only term
C) It is a global function
D) It is a DOM event name
Answer · why
It is reserved in JavaScript, so React names the prop after the DOM property className instead; the same clash turns the label attribute for into html...
Q 02/05
A) Hangman
B) Tic-tac-toe
C) Battleship
D) Dots and Boxes
Answer · why
Tic-tac-toe is the tutorial's project, and its final step stores every board in a history array so a player can jump back to any earlier move.
Q 03/05
A) Runs it in a worker
B) Delays its output
C) Calls it twice
D) Logs every call
Answer · why
Strict Mode calls it twice and discards one result, so a component whose output differs between the two runs is caught in development, where productio...
Q 04/05
A) unsafelyInjectHTML
B) trustedInnerHTML
C) setRawInnerHTML
D) dangerouslySetInnerHTML
Answer · why
dangerouslySetInnerHTML takes an object shaped { __html: '...' } rather than a plain string, a second speed bump on top of the scary name before marku...
Q 05/05
A) Learn once, write anywhere
B) Code once, ship everywhere
C) Build once, run natively
D) One codebase, every screen
Answer · why
Learn once, write anywhere was the pitch: the launch post said Facebook was not chasing "write once, run anywhere", because each platform deserves its...
Play the full React JS Trivia quiz — scored, streaked, and passable to a friend.