React-router-dom with MaterialUI

Hello guys, I’m having an issue with a project I’m working on. This is the codesandbox link:

The issue is, the router is supposed to mount the components defined in MainComponent.js, but for some reason it is not. The router is working, because I see the mountpoint changing in the address bar, but the component is not being mounted. Can someone help me with this, please?