arrow_backBACK TO DRILLS
Blue BelteventsPREMIUM
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?
A custom React component accepts a prop named onSmash and internally passes it to <button onClick={onSmash}>. Why is this valid?