React · Junior · Question 65 of 75

What is the naming convention for props that accept event handlers?

<SearchBox onSearch={handleSearch} />

Explanation

Following the DOM's onClick style makes components feel familiar. The prop is just a function, so the name is up to you.

Further reading

Problem with a question

React · Junior · question 65

Test yourself

Take the React · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz