How do you Navigate between pages in SPFx(React) Teams solution .

Occasional Contributor

We can use React links to navigate between pages in a normal website, but in React spfx solution there is no links that we can use, so how would you navigate between , pages in React spfx solution.
Something I came up with was, conditional rendering of all the components and putting them all in a single file, and passing callback function as props. but in this case I have to forecefully execute UseEffect when, a page is rendered , or the master page is rendered. Instead of this is there anything that can be done. for navigating between pages in React using SPFx solution for TEAMS.

0 Replies