Living Style Guide with React, webpack, ES6 and Sass.
$ npm install
Start the Webpack server (includes live reloading when you change files):
$ npm start
Open http://localhost:3001 in a browser. ./src/main.js
is the entry point.
Define each component you want to include in your style guide components
array in ./src/main.js
, like so:
const components = [
{
component: require('./components/Card/Card'),
name: 'Card',
description: require('./components/Card/README.md'),
props: {
title: "Card title",
text: "I am a very simple card."
},
modifiers: []
}
];