Answers for "react onclick new tab"

0

react onclick new tab

const openInNewTab = (url) => {
  const newWindow = window.open(url, '_blank', 'noopener,noreferrer')
  if (newWindow) newWindow.opener = null
}
Posted by: Guest on October-14-2021

Code answers related to "react onclick new tab"

Code answers related to "Javascript"

Browse Popular Code Answers by Language