Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Create React Best Practices Documentation

Đang mở
#1 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tài liệu
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
react
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu bằng cách xem xét các pattern hiện có của component, context và hook trong các codebase extension và mobile, đồng thời ghi nhận các cách tiếp cận đã lỗi thời và đang được khuyến nghị. Chuẩn bị một bản nháp không phụ thuộc vào sản phẩm để nhận ý kiến đóng góp từ cả @MetaMask/extension-devs và @MetaMask/mobile-devs, sau đó xác nhận rằng các thực hành dùng chung đã được phê duyệt và phê chuẩn.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

category-documentation github-migration-triaged team-wallet-framework wf-documentation

The extension code base has several patterns of component structures in it, some of which are deprecated while others are the current promoted way of writing react components. The purpose of this document is to encapsulate all of our best practices such that a new contributor is not guessing on the appropriate way to build components (as well as how to do the other parts of React, such as contexts, hooks, etc).

This document is product agnostic and will need to have members of both @MetaMask/extension-devs and @MetaMask/mobile-devs weigh in on the final document to make sure that it properly reflects shared principles. The document that fulfills this ticket need not be a reflection of the current state of the products, either. If during discussion we agree upon a shared best practice across products but one product team has not yet implemented any instances of that best practice, that is fine. Documentation that is created in this repo is subject to change, approval and ratification of updates.

Ngôn ngữ chính
JavaScript
Star
86
Fork
42
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của MetaMask/contributor-docs

Tất cả issue của MetaMask/contributor-docs

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.