SyntaxFix
Write A Post
Hire A Developer
Questions
This can be done very simply, you don't need to use a different function or library for it.
onClick={event => window.location.href='/your-href'}