Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react onclick div

const test = () => {
const onClick = () => console.log('hi');

return (
<div onClick={onClick} aria-hidden="true">
  Content here
</div>
)};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #onclick #div
ADD COMMENT
Topic
Name
5+4 =