I think this is a duplicate React problem Current behavior : In the container project, it works fine when I route to sub-app/foo. But when I route to sub-app I get the following error : Notice: sub-app/foo will get a class component. sub-app will get a React hooks component Expected behavior: The result I expect is that the subApp code