blocks-util-js

Demo

Installation

Install the git remote url only.

latest:

yarn add https://github.com/tengine/blocks-util-js/

specific:

yarn add https://github.com/tengine/blocks-util-js#<commit-ish>

dependencies

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import {
  defaultTheme,
  FlatButton
} from 'blocks-util-js';

class Main extends React.Component {
  render() {
    return (
      <MuiThemeProvider muiTheme={defaultTheme}>
        <FlatButton label="Label" />
      </MuiThemeProvider>
    );
  }
}

ReactDOM.render(<Main />, document.getElementById('container'));

Development

git clone git@github.com:tengine/blocks-util-js.git
npm install

production build:

npm run build

development build:

npm run storybook

Update GitHub Pages (Demo):

npm run deploy-storybook