arrow_backBACK TO DRILLS
Blue BeltimmutabilitylockPREMIUM

Reverse and sort with immutable updates

A component needs to reverse an array stored in state. Which approach best follows React's immutable update pattern?

lock

This Drill is Locked

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