Closed masakudamatsu closed 4 years ago
The link has been added.
But I cannot figure out how to enable the link if the user has already visited.
Using the useEffect hook can allow me to update the browsing history array. But the browsing history cannot be a state in this case.
The current implementation of how the link is disabled causes issue #107.
Using sessionStorage
and React's useEffect
hook (with []
as the second argument) allows me to enable the link if the user has visited the page.
TODO: Enable the link when the user has already visited the page.
When doing so, use the semantic HTML: use
nav
tag instead ofdiv
when stepIndicator styled component is defined instyle.js