How can I change a state in a different page when a user clicks a link that takes them to that page?
for example
hompage
<Link href="/about">
<button>click to go to about page</button>
</Link>
The user clicks the link in the homepage, then when the user gets to the about page, the state in the about page changes from false to true because the user clicked the link in the homepage.
about page
const [questionone, setQuestionone] = useState(false)
The framework is Next.js.