Explorar el Código

Fix key warning (#93)

Christopher Chedeau hace 5 años
padre
commit
8605af2b54
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/index.tsx

+ 1 - 1
src/index.tsx

@@ -753,7 +753,7 @@ class App extends React.Component<{}, AppState> {
         <fieldset>
           <legend>Shapes</legend>
           {SHAPES.map(({ value, label }) => (
-            <label>
+            <label key={value}>
               <input
                 type="radio"
                 checked={this.state.elementType === value}