4p-common 中文文档教程
4p-common
Install
npm install --save 4p-common
Commands
./
yarn start
: rolls up thesrc
directory and watches for changes
./example
yarn start
: Starts the demo application
Components
Fields
Formik 字段:
- AddressInput
- CreateSelect
- CurrencyInput
- … @TODO add the rest and link to
Usage
import React, { Component } from 'react'
import MyComponent from '4p-common'
class Example extends Component {
render () {
return (
<MyComponent />
)
}
}
Developing
src/
将设置和创建我们的通用组件
example/
的地方此项目中的沙箱用于开发。 我们从 src/
目录中拉取组件并演示它们是如何使用的
Publishing
$ npm login <login with ocupop creds>
# [ ] Make sure to push changes to git first
# [ ] Make sure to bump the version number
$ npm publish
4p-common
Install
npm install --save 4p-common
Commands
./
yarn start
: rolls up thesrc
directory and watches for changes
./example
yarn start
: Starts the demo application
Components
Fields
Formik Fields:
- AddressInput
- CreateSelect
- CurrencyInput
- … @TODO add the rest and link to
Usage
import React, { Component } from 'react'
import MyComponent from '4p-common'
class Example extends Component {
render () {
return (
<MyComponent />
)
}
}
Developing
src/
Where our common components will be setup and created
example/
A sandbox within this project to develop against. We pull components in from the src/
directory and demonstrate how they're used
Publishing
$ npm login <login with ocupop creds>
# [ ] Make sure to push changes to git first
# [ ] Make sure to bump the version number
$ npm publish
更多
你可能也喜欢
- 1stexamplemoduleadarsh 中文文档教程
- 2d-rotate 中文文档教程
- 58goods-plugins 中文文档教程
- @107v/grapesjs-image-manager 中文文档教程
- @2aminternal/ngx-table-view 中文文档教程
- @2bad/iris.crm.bitrix 中文文档教程
- @3angletech/eslint-config 中文文档教程
- @3scarecrow/vue-filter-table 中文文档教程
- @42.nl/ui-core-infobadge 中文文档教程
- @51npm/freedom-middleware-ossupload 中文文档教程