react component project template for npm modules
by Dawdler https://github.com/lijinke666/dawdler
Have Fun !
[dev]: npm start | `npm run demo`
[build demo] : `npm run build:demo`
[build] : `npm run build`
[test] : `npm run test`
[lint] : `npm run lint`
[coverage] : `npm run ci`
npm install {name} --save
ONLINE example : [https://[your github address].github.io/{name}/](https://[your github address].github.io/{name}/)
Just do the demonstration
import React from "react"
import ReactDOM from "react-dom"
import {name} from "{name}"
import "{name}/assets/index.css"
ReactDOM.render(
<{name} {...options} />,
document.getElementById('root')
)
...
git clone https://github.com/[your github address]/{name}.git
npm install | yarn
npm start
open `http://localhost:8081/`
static PropTypes = {
...
}
[MIT](https://github.com/[your github address]/{name}/blob/master/LICENCE)