Reactjs – How to render the same page compoent including getServerSideProps with different route
I have this folder structure: / |- ... |- pages |- info | |- main.tsx |- extra |- main.tsx Both /info/main and /extra/main routes render the same content, including the getServerSideProps. My question is how to implement the logic in…