jd-opensource / jd-opensource/taro-ui

taro-ui 的组件不能使用 hooks 开发吗?

Open
#1,588 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.7k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

尝试将 taro-ui 的组件改成函数组件 + hooks的形式, 但是引入到项目中报 hooks 使用错误
image

Contributor guide

Open the contributing guide

Research direction

No source file or test is named; start by reproducing the hooks error from the attempted function-component conversion and inspect the imported taro-ui component entry point. Done means determining whether the component can be used with hooks and documenting or resolving the conditions behind the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.