Variable naming inconsistency in the tutorial documentation
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 11.8k
- Fork
- 7.9k
- Merge medio
- 1g 11h
- PR unite (30g)
- 11
Descrizione
Hi,
I have just used the React tutorial, it is great!
It helps a lot to learn the basic.
While working, I have spotted a small inconsistency on https://github.com/reactjs/reactjs.org/blob/main/content/tutorial/tutorial.md
When creating the buttons to move into the history, we are using a move variable that we are sending to jumpTo:

But jumpTo use step to make the moves:

I suggest that we switch the move and step variables of the render function to make the tutorial more understandable by beginners:

I can push a merge request for the documentation but I do not know how to change the source code linked by @gaearon on codepen:
https://codepen.io/gaearon/pen/gWWZgR?editors=0010
Is there a way to do that?
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 da content/tutorial/tutorial.md e leggi la funzione render del tutorial insieme a jumpTo per confermare l’incoerenza nella denominazione delle variabili. Controlla il CodePen collegato per determinare se fa anch’esso parte della modifica alla documentazione richiesta. Il lavoro è completato quando il tutorial usa nomi coerenti e l’esempio pertinente rimane comprensibile per i principianti.
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
- 72/100