Make use of Rollup config to publish react components as npm package (https://www.npmjs.com/package/react-rollup-wrapper/)
Usecase:
- Put all resusable components in npm package. Install this package in projects where you want to use the components.
- Make a custom wrapper on a public libraries like Bootstrap, Material UI, Webiny UI etc, and publish your components to have uniform design and common codes across applications