react-component / react-component/upload
why Component is dynamic
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 804
- Forks
- 323
- Avg merge
- 12m
- Merged PRs (30d)
- 1
Description
state = {
Component: null,
}
为什么不直接赋值,而是在didMount中赋值,是基于什么样的考虑
state = {
Component: this.getComponent(),
}
ref, https://github.com/vueComponent/ant-design-vue/issues/780 位置计算错误,原因是计算时内容尚未加载
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read src/Upload.jsx around line 61 and inspect how Component is assigned in didMount. Compare that timing with the linked ant-design-vue issue about position calculation before content loads, then determine whether the current initialization is intentional or needs a change; done means the timing rationale or required behavior is documented in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100