react-demokit
Demo tookit for react.
installation
npm install -S @feizheng/react-demokit
update
npm update @feizheng/react-demokit
properties
usage
- import css
@import "~@feizheng/react-github-corner/dist/style.scss";
@import "~@feizheng/react-sw-update-tips/dist/style.scss";
@import "~@feizheng/react-demokit/dist/style.scss";
// customize your styles:
$react-demokit-options: ()
- import js
import React from 'react';
import ReactDOM from 'react-dom';
import pkg from '../package.json';
import ReactDemokit from '@feizheng/react-demokit';
import './assets/style.scss';
class App extends React.Component {
render() {
return (
<div className="app-container">
<ReactDemokit
title="react demokit"
description={pkg.description}
className="p-6">
<button className="button">I'm the component 🐶</button>
</ReactDemokit>
</div>
);
}
}
ReactDOM.render(<App />, document.getElementById('app'));
documentation
license
Code released under the MIT license.