@0xkilo/components 中文文档教程

发布于 3年前 浏览 29 项目主页 更新于 3年前

components

Ui Kit for Pangolin

development flow

  1. do yarn in components
  2. do yarn link in components
  3. do yarn link "@pangolindex/components" in the project where you want to use components
  4. do yarn dev which will watch for any files changes and recompiles files

Incase react hook violation 错误出现,在这种情况下也请按照以下步骤操作。

  1. do yarn link in <project_root>/node_modules/react.
  2. 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

  1. do yarn in components
  2. do yarn link in components
  3. do yarn link "@pangolindex/components" in the project where you want to use components
  4. 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.

  1. do yarn link in <project_root>/node_modules/react.
  2. 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.
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文