"Instead of nesting definitions" in docs
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ả
On this page: https://react.dev/learn/your-first-component
When a child component needs some data from a parent, pass it by props instead of nesting definitions.
all of a sudden, it says, "instead of nesting definitions". Can you explain in the docs more what is "nesting definitions" and how does it work to "attempt to pass some data and doesn't work or shouldn't be done"? I have never heard of "nesting definitions" after working with React for a few years.
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 “Your First Component” tại https://react.dev/learn/your-first-component và tìm câu chứa “instead of nesting definitions.”. Xem lại trang “Passing Props to a Component” được liên kết để hiểu ngữ cảnh, sau đó làm rõ việc lồng các định nghĩa có nghĩa là gì và tại sao props được ưu tiên. Hoàn thành khi một người dùng React có thể hiểu cụm từ này và hướng dẫn dự kiến về việc truyền dữ liệu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- react
- Lĩnh vực
- documentation
- Loại issue
- Tài liệu
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 65/100