RescriptReactRouter with code-splitting

It would be nice if RescriptReactRouter was implemented such that it was easy to use route based code splitting. I understand using Next.js or other frameworks could achieve this as well, but some users may simply need some code splitting and nothing else.

Isn’t code-splitting dependent on dynamic import usage? What is the router supposed to do here?

1 Like

It will take some thought, but it would be interesting if the router can come up with an unopinionated approach to using something like dynamic or supporting one of the emerging approaches built into React.