Warning about FooterLink keys in dev
Personne n'a encore pris cette issue.
- Langage dominant
- JavaScript
- Étoiles
- 11.8k
- Forks
- 7.9k
- Merge moyen
- 1 j 11 h
- PR mergées (30 j)
- 11
Description
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
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Ouvrez src/components/LayoutFooter/Footer.js au niveau des éléments FooterLink des lignes 67 et 115, puis exécutez yarn dev et accédez à localhost:8000. Confirmez que la console du navigateur ne signale plus l’avertissement concernant l’absence de clé unique.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript, react
- Domaine
- frontend
- Type d'issue
- Bug
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 55/100