HTML onUnclick handler?

Viewed 288

I want to trigger one handler when an input field is clicked, and another handler when it is deselected (i.e. if someone clicks outside of the field). Is there a way to accomplish this?

The click handler is simple enough:

<input onClick={props.clicked}>

Is it possible to create an "unclick" handler?

1 Answers

I think onBlur event should be suitable for this

Related