react onclick div

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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