What is the status of "shallow renderer"?
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 11.8k
- 派生
- 7.9k
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 11
描述
Google leads me to this page: https://reactjs.org/docs/shallow-renderer.html
However, I can not find it anywhere in the table of contents on the right.
Note that the versioning on the page suggests that this is a feature of React 18

I see that react-test-renderer does export react-test-renderer/shallow ( https://github.com/facebook/react/blob/main/packages/react-test-renderer/shallow.js ), but it isn't documented (https://reactjs.org/docs/test-renderer.html). I also see that shallow-renderer ( https://www.npmjs.com/package/react-shallow-renderer ) is versioned 16, and was last updated 2 years ago, suggesting to me that it is not up to date with React 18.
It would be nice if some clarification of the state of this feature was added to the page. (I'd be happy to volunteer to make such a PR, but I have no way of knowing what the definitive answer is :-) )
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
先从链接的 shallow renderer 文档页面和 react-test-renderer/shallow.js 入口点开始,然后将它们与链接的 test renderer 文档进行比较。确定该功能在 React 18 中的状态,以及独立的 react-shallow-renderer 软件包是否为当前版本。文档清楚说明其状态并在导航中适当显示,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, react
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100