arrow_backBACK TO DRILLS
Blue Beltusereducer
Initializer function avoids repeated computation
Why is useReducer(reducer, username, createInitialState) more efficient than useReducer(reducer, createInitialState(username))?
Why is useReducer(reducer, username, createInitialState) more efficient than useReducer(reducer, createInitialState(username))?