@lukeboyle/react-component-boilerplate
v1.1.0
Published
A simple way to get started with making ES6 modules. Uses rollup to compile your ES6 to Commonjs and a basic Gulp process for a demo
Downloads
7
Readme
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.