Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

image onclick react

    const imageClick = () => {
      console.log('Click');
    }

	return (
           <div>
              <img src={require('/myfolder/myimage.png')} onClick={() => imageClick()} />
           </div>
        );
 
PREVIOUS NEXT
Tagged: #image #onclick #react
ADD COMMENT
Topic
Name
1+2 =