Answers for "how to make the link open at a new page react link"

10

how to open link in new tab in react js

<td onClick={()=> window.open("someLink", "_blank")}>text</td>
Posted by: Guest on August-13-2020
0

opening a link in another tab in react

import React from "react";

function App() {
  const handleClick = () => {
    window.open("http://twitter.com/saigowthamr");
  };

  return (
    <div>
      <h2>App</h2>
      <button onClick={handleClick}>Twitter</button>
    </div>
  );
}

export default App;
Posted by: Guest on October-27-2021

Code answers related to "how to make the link open at a new page react link"

Code answers related to "Javascript"

Browse Popular Code Answers by Language