react onclick div

Solutions on MaxInterview for react onclick div by the best coders in the world

showing results for - "react onclick div"
Pablo
06 Apr 2020
1const test = () => {
2const onClick = () => console.log('hi');
3
4return (
5<div onClick={onClick} aria-hidden="true">
6  Content here
7</div>
8)};
9