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
demo: remove form ref usage from demo #46046
Conversation
Run & review this pull request in StackBlitz Codeflow. |
size-limit report 📦
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 5aa5eb9:
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #46046 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 700 700
Lines 11855 11855
Branches 3160 3160
=========================================
Hits 11855 11855 ☔ View full report in Codecov by Sentry. |
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
Form 在 function component 和 class component 下的两种用法,在功能上对用户没啥区别,不需要重复展示。单独放一个 codesandbox 链接就好。
现在演示很多了,截图和构建都有时间成本,也应该梳理一下。
📝 Changelog
☑️ Self-Check before Merge
🚀 Summary
🤖[deprecated] Generated by Copilot at 5aa5eb9
The pull request removes the outdated code examples of using
ref
in class component withForm
component from the documentation, and adds a codesandbox link to show how to useref
in class component. This is to avoid confusion and simplify the documentation.🔍 Walkthrough
🤖[deprecated] Generated by Copilot at 5aa5eb9
control-ref.md
andcontrol-ref.tsx
files that contain outdated code examples of usingref
to get the form instance in class component (link, link)Examples
and代码演示
sections ofindex.en-US.md
andindex.zh-CN.md
files respectively (link, link)ref
in class component as an alternative solution for users who are not using functional components or hooks, to both the English and Chinese versions ofcontrol-hooks.md
file (link, link)