Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react hooks link to external site

        // Open in the same window
        window.location.href = externalLink;

        // Open in a new window
        window.open(externalLink);
 
PREVIOUS NEXT
Tagged: #react #hooks #link #external #site
ADD COMMENT
Topic
Name
3+4 =