arrow_backBACK TO DRILLS
Blue Beltstate-basicslockPREMIUM

Initializer function vs immediate call

A component initializes state with useState(createTodos()). Another version uses useState(createTodos). Which statement correctly describes the difference?

lock

This Drill is Locked

This is a premium drill. Continue on to the next free drill in the sequence.

CONTINUE DRILLarrow_forward
BugDojo
BlogFAQ

© 2026. Carved in code.