What is the status of "shallow renderer"?
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- JavaScript
- Star
- 11.8k
- Fork
- 7.9k
- Merge trung bình
- 1 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 11
Mô tả
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 :-) )
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với trang tài liệu shallow renderer được liên kết và entry point react-test-renderer/shallow.js, sau đó đối chiếu chúng với tài liệu test renderer được liên kết. Xác định trạng thái của tính năng trên React 18 và liệu package riêng react-shallow-renderer có còn hiện hành hay không. Được xem là hoàn tất khi tài liệu nêu rõ trạng thái của tính năng và xuất hiện phù hợp trong phần điều hướng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, react
- Lĩnh vực
- documentation
- Loại issue
- Tài liệu
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 35/100