Docs - sample code updates needed?
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 11.8k
- Forks
- 7.9k
- Ø Merge
- 1 T. 11 Std.
- Gemergte PRs (30 T.)
- 11
Beschreibung
There seems to be confusion on how to write class components in the docs. Using this as a starting point for other pages which may need to be updated.
There is a mixture of function declaration and class components in the docs which can be confusing as when someone may want or need to use either method. Since the release of hooks, the docs should have a new site version release (similar to how Babel has site versions) with the updated, preferred way to write components backed by the core team.
in CONTRIBUTING.md, it shows that you should write classes with a constructor, but the Blog post titled "Update on Async Rendering" seems to prefer the former method of writing components.
Can this be solidified and added to the docs where necessary? Will there be a need to have a new site version with focus on function declaration components?
🥇
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit dem Vergleich der Hinweise zu Klassenkomponenten in CONTRIBUTING.md mit dem Blogbeitrag "Update on Async Rendering" und erfasse anschließend die betroffenen Dokumentationsseiten. Bestätige die bevorzugten Hinweise des Core-Teams und ob eine neue Website-Version erforderlich ist; die Arbeit ist abgeschlossen, wenn die Hinweise und die erforderlichen Beispiele einheitlich aktualisiert wurden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, react
- Bereich
- documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100