Notifying the readers about the change in default value in context example
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- JavaScript
- Estrelas
- 11.8k
- Forks
- 7.9k
- Merge médio
- 1d 11h
- PRs com merge (30d)
- 11
Descrição
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'
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Comece pelo exemplo “Passing Data Deeply with Context” e compare o valor padrão exibido com LevelContext.js; depois, leia a subseção “Using and providing context from the same component”. Adicione uma breve observação no ponto em que o exemplo muda para 0 e confirme que a subseção posterior continua consistente com essa explicação.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- javascript, react
- Domínio
- documentation
- Tipo de issue
- Documentação
- Dificuldade
- 1/5
- Tempo estimado
- Menos de uma hora
- Status de atividade
- Estagnada
- Clareza
- Claramente especificada
- Facilidade para iniciantes
- 55/100