Skip to content

lijinke666/react-component-project-template

Repository files navigation

{name}

npm npm npm version jest

react component project template for npm modules

by Dawdler https://github.com/lijinke666/dawdler

Have Fun !

Usage for the template

[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`

Installation

npm install {name} --save

Screenshots

Example

ONLINE example : [https://[your github address].github.io/{name}/](https://[your github address].github.io/{name}/)

Usage

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')
)

Options

...

Development

git clone https://github.com/[your github address]/{name}.git
npm install | yarn
npm start
open `http://localhost:8081/`

Properties

  static PropTypes = {
      ...
  }

License

[MIT](https://github.com/[your github address]/{name}/blob/master/LICENCE)