react-lib-template

A sample opinionated boilerplate to build react npm packages. Uses ReactJs, Babel, SCSS and Rollup.

Demo

👋 Hello from react-lib-template

Usage

Install the package.
npm install --save react-lib-template
Import the package.
import Faq from 'react-lib-template';

example:

import React, { Component } from 'react';
import ReactPackage from 'react-lib-template';

export default class App extends Component {
  render() {
    return (
      <div>
        <ReactPackage/>
      </div>
    )
  }
}

Props

No props need to be passed to the package.

MIT © Binod Swain

This is how the demo site will look like.
Update the website folder to generate a static site.