I’m exploring how to make a React app extensible through npm plugins, and I’m looking for a clean architecture that lets plugins contribute to the app.
I need a clean way to extend a React app so e.g. npm plugins can add new components to it.
I’m considering new routes as one kind of contribution that a React plugin could make.
I’m also considering how plugins could use existing design components from the core app.
Related: react framework criticism, react router design tradeoffs, cloudflare deployment architecture