Are there any examples out there of injecting new ReactJS components at Runtime, e.g:
- A build is deployed on production is stable and running.
- We need to add a component or a new route without running through an entire deploy process.
- An additional usecase : the application ships with all the components ( e.g: A CMS Module library) - Only certain components were enabled in layout at build time but need more to be added later via a config.
Approaches I have considered.
- Using
nextgetStaticPathsand then using a override in the front-end to inject client side components. This will most probably be seen at runtim - Use a more faster deploy system - This is more obvious but imagine lots of changes within a day and multiple deploys.
Any similar problems or approaches people would have tried would be great.