Skip to content

hocgin/react-component-npm

Repository files navigation

React Component Template

更改模版

  • package.json

@hocgin/component_name=> YOUR COMPONENT NAME repository=> YOUR Repository URL

发布 npm

# 1. 登陆
npm login
# 2. 编译+发布
npm run deploy

使用组件

# 引入插件
yarn add @hocgin/gin-xx:latest
# 在 jsx 中使用
import GinXx from '@hocgin/gin-xx'

About

用来构建和发布 React 组件到 NPM 的模版项目

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published