React – open new tab once – Reactjs
If a component is rendered. I want to open a new tab. (window.open(url, "_blank")?.focus();) But (during development) this tab is opened twice because of the React.StrictMode. How can I prevent this from being called multiple times without disabling the StrictMode?…