Render conditional not working – Next.js 13 – Dynamic Routing – Reactjs
This page is generated by getStaticPaths and getStaticProps to have [projectSlug].tsx, The problem is that the <h1>{counter}</h1> is modified when the state changes but the condition is not affected by the change. const [counter, setCounter] = useState(0); <> <h1>{counter}</h1> {counter…