1.0.22 • Published 5 years ago
simple-components-react v1.0.22
Simple Component
This project huge inspice by Element Vue (React)
Rules for contribute component
- If props for event please add
on
before, example:onChange, onInput, onFocus, onLeave
Install
npm install simple-components-react
Todo
Project Reactjs Component. Go from scratch /skrætʃ/.
- Step up webpack to dev, transpiler react syntax, webpack dev serve.
- Publish project to NPM (Defined which one will be install)
- Step up eslint.
- Step up new docs with seperate page for component
- Step up test
- Step up CI/CDs
- Step up precommit? (Optional)
Test
- Snapshots
Step up project:
For detail go google search : ).
- Install webpack, webpack-cli (the bundler)
npm i webpack webpack-cli
. - Install babel transpiler
npm i @babel/core @babel/plugin-proposal-class-properties @babel/preset-env @babel/preset-react
. - Create folder
src
,src/components
,src/index.js
,dist/index.html
. - Create webpack config file
tools/webpack.config.js
,tools/webpack.prod.js
- Create babel config file
.babelrc
- Add script to npm
"start": "webpack-dev-server --watch --mode development --config tools/webpack.config.js"
- Add webpack config with 3 files in tools
Directory
├── dist
│ └── index.js
├── src
│ ├── components (All component go here)
│ ├── util
│ ├── index.html (template ver devserver)
│ ├── build.js (file import all components for build)
│ └── index.js (file for reactDom run devserver)
├── styles
│ ├── *.scss
│ ├── variables.scss
│ └── index.scss (import all file scss)
└── tools
├── webpack.dev.js
└── webpack.build.js
Questions
1.0.22
5 years ago
1.0.21
5 years ago
1.0.19
5 years ago
1.0.18
5 years ago
1.0.17
5 years ago
1.0.16
5 years ago
1.0.15
5 years ago
1.0.14
5 years ago
1.0.13
5 years ago
1.0.12
5 years ago
1.0.11
5 years ago
1.0.10
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago