arrow_backBACK TO DRILLS
Blue Beltusereducer

Initializer function avoids repeated computation

Why is useReducer(reducer, username, createInitialState) more efficient than useReducer(reducer, createInitialState(username))?

BugDojo
BlogFAQ

© 2026. Carved in code.