hello-world-react-npm-package-example
v1.3.5
Published
hello-world-react-npm-package-example
Readme
Hello World React NPM Package Example
To publish npm package to npm.
- npm login in your terminal if not yet logged in.
- in your directory, npm init
- Add your files. Make sure to create index.js for entry.
- For react components,
- make sure to
import React from 'react'in your components even for react 17. - make sure to use babel to transpile your code. Otherwise, your browser will complain about jsx.
- make sure to
- For componets with css,etc. Use webpack to bundle all together.
- Import components in your project.
