Suggestion for Intro to React tutorial, where JSX is mentioned
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 11.8k
- 派生
- 7.9k
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 11
描述
Beginner to React.js but not to front end dev... or writing support documentation.
So, while just getting started on the Intro to React tutorial, I came across this comment, under the What is React? heading:
Most React developers use a special syntax called “JSX” which makes these structures easier to write. The
<div />syntax is transformed at build time to React.createElement('div').
I think that this ^ section be improved a bit in terms of clarity, especially for beginners—I looked at it and initially thought, "That <div /> syntax isn't familiar to me and doesn't even show up in the provided example!" Here's one approach that could be more readily understandable:
Most React developers use a special syntax called "JSX" which makes these structures easier to write. JSX allows for the use of standard HTML syntax (example:
<div>content</div>) which is then transformed at build time to React.createElement('div').
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 Intro to React 教程中的 What is React? 标题开始,检查解释 JSX 和
示例的段落。更新说明,使 JSX HTML 示例对初学者来说清晰易懂,然后验证措辞是否与教程周围的内容一致。由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, react
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100