React Component Boilerplate
This is a simple boilerplate project to get started with react components. The purpose of this is to make a component to easily publish on npm.
Installation
npm install @lukeboyle/react-component-boilerplate
- Copy the files from node modules into your project root
Getting Started
Building your module
- Develop your component in
src/index.jsx
-
npm run build
will run rollup onindex.jsx
under thesrc
folder - Add your component to the demo project js
-
npm run build-demo
will run the gulp default process indemo/src
- The gulp process will use babelify to transform the jsx, so you may import your un-transpiled jsx file.