How to create a React component and publish it on NPM
Noel Broda
2.2K26

One other question. With default react-fancy-component: I remove react library, it will still build but I can no longer use the component elsewhere.

npm remove react.

but webpack config says it is ‘external’. In my testing app which I

npm link

the react-fancy-component to I get:

found: Error: Cannot resolve module ‘react’ in /Users/sdjekoosl/react-fancy-component/build
Like what you read? Give sdjekoosl a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.