Explorar o código

Fix key warning (#93)

Christopher Chedeau %!s(int64=5) %!d(string=hai) anos
pai
achega
8605af2b54
Modificáronse 1 ficheiros con 1 adicións e 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}