Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

React - link via button

0 votes
9 views
added Apr 21 in React by LC Marshal Captain (25,860 points)
<button
  type="button"
  onClick={(e) => {
    e.preventDefault();
    window.location.href='http://google.com';
    }}
> 
Call for price</button>

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...