+ 2
Link to unrendered element in react.
In a react app, I have a page called "Images" which has an element <h1 id="title>Images</h1>. I want to travel to this specific element when I visit the page from the homepage. I tried using <a href="./Images#title">, but it does not work, as the h1 element is rendered AFTER the page is visited. Any ideas?
4 Respuestas
+ 3
Bob_Li already using it
+ 1
React Router?
https://www.w3schools.com/react/react_router.asp
0
maybe you're using it wrong...
a forgotten import/export, wrong filepath or a typo somewhere...