Browse Source

Fix warning about missing key prop

When rendering using a for loop each child whould have a key prop.
master
Saúl Ibarra Corretgé 8 years ago
parent
commit
2f388dfb6a
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      react/features/welcome/components/WelcomePage.web.js

+ 3
- 1
react/features/welcome/components/WelcomePage.web.js View File

143
      */
143
      */
144
     _renderFeature(index) {
144
     _renderFeature(index) {
145
         return (
145
         return (
146
-            <div className = 'feature_holder'>
146
+            <div
147
+                className = 'feature_holder'
148
+                key = { index } >
147
                 <div
149
                 <div
148
                     className = 'feature_icon'
150
                     className = 'feature_icon'
149
                     data-i18n = { `welcomepage.feature${index}.title` } />
151
                     data-i18n = { `welcomepage.feature${index}.title` } />

Loading…
Cancel
Save