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

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
Show your support

Clapping shows how much you appreciated sdjekoosl’s story.