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项目(不是taro项目)引入taro的组件库?是否有demo? #26

Open
zhouzg5533 opened this issue Jul 18, 2022 · 1 comment

Comments

@zhouzg5533
Copy link

背景:当前有两个项目,一个是taro项目(小程序),一个是react项目(H5)。希望开发一个公用组件库,两个项目都能引入组件。看了taro 2.0的 build --ui,是可以编译两套代码的。但是3.0之后没有build --ui。要如何搭建这样的组件库?求思路,感谢

@Chen-jj
Copy link
Contributor

Chen-jj commented Jul 19, 2022

如果要在小程序中使用,那么是要基于小程序的组件库和 API 库的,建议参考此项目构建基于 Taro 的组件库,然后参考这里的讨论,修改普通 H5 宿主项目的编译配置从而使用此组件库:NervJS/taro#11925

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

No branches or pull requests

2 participants