Notifying the readers about the change in default value in context example
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 11.8k
- Fork
- 7.9k
- Merge medio
- 1g 11h
- PR unite (30g)
- 11
Descrizione
The example given for context (Passing Data Deeply with Context) starts with a default value of 1. Later on, for explaining 'Using and providing context from the same component', it is changed to 0 and remains the same for a later subtopic too.
While I was going through the example, I was left confused about how the code (shown in the below screenshot) is working given that the default value is set to 1 until I checked the 'LevelContext.js'.
While one can look at the 'LevelContext.js' and check, I think it would be better to make readers aware of the change! We can add a small sentence like 'Note that the default value is changed to 0'
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 dall’esempio “Passing Data Deeply with Context” e confronta il valore predefinito visualizzato con LevelContext.js, quindi leggi la sottosezione “Using and providing context from the same component”. Aggiungi una breve nota nel punto in cui l’esempio cambia a 0 e conferma che la sottosezione successiva rimane coerente con questa spiegazione.
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
- 55/100