Skip to content

Latest commit

 

History

History
73 lines (52 loc) · 1.08 KB

README.md

File metadata and controls

73 lines (52 loc) · 1.08 KB

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 [email protected]: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