@0xkilo/components 中文文档教程
components
Ui Kit for Pangolin
development flow
- do
yarn
in components - do
yarn link
in components - do
yarn link "@pangolindex/components"
in the project where you want to use components - do
yarn dev
which will watch for any files changes and recompiles files
Incase react hook violation 错误出现,在这种情况下也请按照以下步骤操作。
- do
yarn link
in<project_root>/node_modules/react
. - do
yarn link react
in components which will symlink react which are being used by project.
Publish flow
- do
yarn publish
which will build the components and publish to npm.
components
Ui Kit for Pangolin
development flow
- do
yarn
in components - do
yarn link
in components - do
yarn link "@pangolindex/components"
in the project where you want to use components - do
yarn dev
which will watch for any files changes and recompiles files
Incase react hook violation error comes, in that case follow below steps also.
- do
yarn link
in<project_root>/node_modules/react
. - do
yarn link react
in components which will symlink react which are being used by project.
Publish flow
- do
yarn publish
which will build the components and publish to npm.