← React Intermediate Questions - Set 9 Q90

How do you handle event binding in React?

React Intermediate Questions - Set 9

Example

<button onClick={handleClick}>        // automatic binding in JSX
<button onClick={() => handle(id)}>   // with arguments

What to notice

← Back to the question list