Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

构建 React 组件并发布到 NPM · Just Blog #12

Open
sjfkai opened this issue Mar 13, 2019 · 0 comments
Open

构建 React 组件并发布到 NPM · Just Blog #12

sjfkai opened this issue Mar 13, 2019 · 0 comments

Comments

@sjfkai
Copy link
Owner

sjfkai commented Mar 13, 2019

https://blog.sjfkai.com/2019/03/13/%E6%9E%84%E5%BB%BA-React-%E7%BB%84%E4%BB%B6%E5%B9%B6%E5%8F%91%E5%B8%83%E5%88%B0-NPM/

平时我们开发前端项目,大多都是直接构建一个可以访问的前端项目。如果我们需要开发一个 React 组件供别人引用,应该怎样做呢?
本文将为你讲解如何使用 webpack 打包一个 React 组件并上传到 npm
你也可以直接 clone 最终代码,在其基础上完成自己的组件。
初始化项目123mkdi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant