DEV Community

Discussion on: How to create an npm library from react components

Collapse
 
shivams136 profile image
Shivam Sharma

Is there any way to use the react-scripts toolchain to build a library? I mean CRA has already done everything for us so why set up rollup separately?

Collapse
 
jimjunior profile image
Beingana Jim Junior

We used CRA for previewing our component but rollup is the one in charge of bundling the library