Warning about FooterLink keys in dev
Aberta
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
There is a warning in the browser console when running the project in development mode. The warning can be fixed by adding a key prop to FooterLink elements here and here. If this should be fixed I will submit a PR to do so.
Warning text:
index.js:2177 Warning: Each child in an array or iterator should have a unique "key" prop.
Check the render method of `Footer`. See https://fb.me/react-warning-keys for more information.
in FooterLink (at Footer.js:67)
in Footer (at index.js:69)
in div (at index.js:45)
in Template (at index.js:6)
in _default (created by ComponentRenderer)
in ComponentRenderer (created by Route)
in Route (created by withRouter(ComponentRenderer))
in withRouter(ComponentRenderer) (created by Root)
in ScrollContext (created by Route)
in Route (created by withRouter(ScrollContext))
in withRouter(ScrollContext) (created by Root)
in Router (at root.js:143)
in DefaultRouter (created by Root)
in Root (at app.js:45)
in AppContainer (at app.js:44)
Steps to reproduce:
- Checkout
masterbranch - Run
yarn dev - Navigate to
localhost:8000and look in the browser console
Browser: Chrome 63
OS: MacOS 10.13.1
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
Abra src/components/LayoutFooter/Footer.js nos elementos FooterLink das linhas 67 e 115, depois execute yarn dev e acesse localhost:8000. Confirme que o console do navegador não relata mais o aviso de chave exclusiva ausente.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- javascript, react
- Domínio
- frontend
- Tipo de issue
- Bug
- Dificuldade
- 1/5
- Tempo estimado
- Menos de uma hora
- Status de atividade
- Estagnada
- Clareza
- Claramente especificada
- Facilidade para iniciantes
- 55/100