Suggestion for Intro to React tutorial, where JSX is mentioned
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 11.8k
- Fork
- 7.9k
- Merge medio
- 1g 11h
- PR unite (30g)
- 11
Descrizione
Beginner to React.js but not to front end dev... or writing support documentation.
So, while just getting started on the Intro to React tutorial, I came across this comment, under the What is React? heading:
Most React developers use a special syntax called “JSX” which makes these structures easier to write. The
<div />syntax is transformed at build time to React.createElement('div').
I think that this ^ section be improved a bit in terms of clarity, especially for beginners—I looked at it and initially thought, "That <div /> syntax isn't familiar to me and doesn't even show up in the provided example!" Here's one approach that could be more readily understandable:
Most React developers use a special syntax called "JSX" which makes these structures easier to write. JSX allows for the use of standard HTML syntax (example:
<div>content</div>) which is then transformed at build time to React.createElement('div').
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia nel tutorial Intro to React, sotto l’intestazione What is React?, e rivedi il paragrafo che spiega JSX e l’esempio
. Aggiorna la spiegazione in modo che l’esempio HTML in JSX sia chiaro per i principianti, quindi verifica che la formulazione corrisponda al contenuto circostante del tutorial.Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, react
- Ambito
- documentation
- Tipo di issue
- Documentazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 45/100