What is the correct way to attach the function yo to a click event?

PHOTO EMBED

Sun Jun 12 2022 09:22:28 GMT+0000 (Coordinated Universal Time)

Saved by @mehran1801 #react.js

<button onClick={yo}></button>
content_copyCOPY