We are using react-router to use both memory router and browser router (memory router is required to add routing feature to inline iframe app - which figma does) but since our production now uses /figma intead of figma-native we've decided to drop react-router use and migrate to NextJS Router to fully utilize NextJS as our standard.
Below references are related to migartion specific scenarios