Friday 20 November 2020

CreateReactApp: embed end-user plugin at runtime

We've a React application created/deployed using CreateReactApp.

This application is able to display some widgets. We've predefined types of widgets deployed with our own application. We'd like the end-users of our application being able to develop their own type of widgets - using a dev tool like Webstorm/VisualStudio - and deploy them into our application.

  1. Our application needs to provide a public API and a plugin dev library
  2. We want the plugins to be able to use the libraries our application is using (e.g. React, material-ui…)
  3. We need a way to "load" end-user code that is registering new widget types using our public API.

Can we do that using CreateReactApp or do we need to eject?

What are the best practices for doing this ?



from CreateReactApp: embed end-user plugin at runtime

No comments:

Post a Comment