arrow_backBACK TO DRILLS
Blue BelteventslockPREMIUM

Custom event handler prop names

A custom React component accepts a prop named onSmash and internally passes it to <button onClick={onSmash}>. Why is this valid?

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.