Browse Source

Fix key warning (#93)

Christopher Chedeau 5 years ago
parent
commit
8605af2b54
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/index.tsx

+ 1 - 1
src/index.tsx

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