Creating an npm package is easy (or even possible?) using the starter scaffold create-react-app
. Instead the React team suggests using alternate toolchains, stating that:
nwb is particularly great for publishing React components for npm. It can be used for creating React apps, too.
source
nwb
guide to publishing components and libraries (aka npm
packages).
nwb boilerplate:
Describe word-scramble-react-component here.