How to navigate via clickHandlers in Javascript?

Posted by Rohit Kumar | Updated on

Want to navigate via clickHandlers? I’m gonna make the assumption that you’re not building a single page app and using something along the lines of React router. And that what you need to do is simply navigate to a url based on the input.

There are two main ways of doing depending on wether you want to:

1. Style an as your button:

2. Use a