reactjs / reactjs/react.dev

Contributing Controlled-components mental-model diagrams

未关闭
#5,003 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
JavaScript
星标
11.8k
派生
7.9k
平均合并
1 天 11 小时
30 天内合并 PR
11

描述

Hi,

I don't really know where this could be integrated into the documentation, but I've created some visuals to explain step-by-step what really happens when interacting with a Controlled-component, for each field type:

  • text field
    Textfield controlled-component
  • select:
    Select controlled-component
  • multiple select:
    SelectMultiple controlled-component
  • checkbox:
    Checkbox controlled-component
  • radio:
    RadioButtons controlled-component

I'd love to contribute those diagrams to the reactjs.org project if you think it can be useful.

I have them in SVG
I can edit/adapt them as needed
I can easily create a PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

检查现有的 react.dev 文档结构,找出适合放置 controlled components 指南的位置。检查为文本字段、select、multiple select、checkbox 和 radio 示例提供的 SVG 图表,然后确认应如何调整和集成这些图表;当这些图表被接纳到合适的文档页面中时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, react
领域
documentation
Issue 类型
文档
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。