arrow_backBACK TO DRILLS
White Beltrules-of-hookslockPREMIUM

Non-Hook utilities can be conditional

Why is it valid to call getSorted(items) conditionally inside a component render, but invalid to conditionally call useSorted(items) if it uses Hooks internally?

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.