reactjs / reactjs/react.dev

Add proper error description in tutorial

Aperta
#1,867 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
JavaScript
Stelle
11.8k
Fork
7.9k
Merge medio
1g 11h
PR unite (30g)
11

Descrizione

URL: https://reactjs.org/tutorial/tutorial.html

In the Lifting State Up we reach a point where we have passed the onClick handler of square from board and we are about to define the handleClick() function and the guide states that for now we will get an error as this.handleClick is not a function
whereas I receive a slightly different error. (enclosed in screenshots)

It would benefit the tutorial to add a screenshot so that the user running through the tutorial is getting the correct type of error.
this might seem excessive but when a person is following a guide step by step even a mention of receiving a planned error seems like a step in the learning and hence we should ensure the user gets a better look at it.
I am just putting this here as maybe a discussion point or if any mod could provide some insight

Screenshot 2019-03-26 at 11 44 58 AM Screenshot 2019-03-26 at 11 45 12 AM

(doesn't seem like a major fix and would love to send a PR for this as well, if we decide to implement this)

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Esamina la sezione "Lifting State Up" del tutorial di React all’URL del tutorial indicata e confronta l’errore this.handleClick documentato con gli screenshot nell’issue. Aggiorna la spiegazione o aggiungi lo screenshot richiesto in modo che l’errore previsto corrisponda a quello riscontrato dagli utenti; verifica che il tutorial continui a essere letto correttamente a partire dal passaggio precedente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript, react
Ambito
documentation
Tipo di issue
Documentazione
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.