SyntaxFix
Write A Post
Hire A Developer
Questions
This worked for me.
onClick={() => {window.open('https://www.google.com/');}}