Answers for "onclick open some component react"

4

reactjs onclick open new page

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

react onclick to make another button

import React from 'react';

const App = () => {
  
const message = () => {
 console.log("Hello World!") 
}

return (
<button onClick={message}> Press me to print a message! </button>
  );
}
Posted by: Guest on April-08-2020

Code answers related to "onclick open some component react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language