reactjs - using NavLink with external URL -
i have following code:
<navlink to="//student.lvh.me:8080/users/edit"> <dropdownlink>wiki</dropdownlink> </navlink> how navlink work external urls? following error in console:
uncaught domexception: failed execute 'pushstate' on 'history': history state object url 'http://student.lvh.me:8080/users/edit' cannot created in document origin 'http://localhost:3000' , url 'http://localhost:3000/'.
is there better way handle external links?
react-router meant "route" in single page applications. when want route external page that's not routing on single page.
use normal anchor tag? <a href="url.com">wiki</a>
Comments
Post a Comment