Commit ead7775
Fix React warnings (facebookarchive#2221)
Summary:
**Summary**
Fix instances of the React warning:
```
React.jsx: Spreading a key to JSX is a deprecated pattern. ' +
'Explicitly pass a key after spreading props in your JSX call. ' +
'E.g. <ComponentName {...props} key={key} />'
```
originating from [React here](https://github.com/facebook/react/blob/18d2e0c03e4496a824fdb7f89ea2a3d60c30d49a/packages/react/src/ReactElementValidator.js#L366-L373)
This warning occurs when you spread a key with other props. There are probably more instances of this issue but these are the highest firing in our codebase.
**Test Plan**
`npm run lint && npm run test`
Pull Request resolved: facebookarchive#2221
Reviewed By: mitermayer
Differential Revision: D18038272
Pulled By: steveluscher
fbshipit-source-id: 736236601ace92ae1e8d127e10bb35e393fa14b71 parent 42a9d8b commit ead7775
File tree
2 files changed
+5
-4
lines changed- src/component
- base
- contents
2 files changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
356 | 355 | | |
357 | 356 | | |
358 | 357 | | |
| |||
420 | 419 | | |
421 | 420 | | |
422 | 421 | | |
423 | | - | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
424 | 426 | | |
425 | 427 | | |
426 | 428 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | 177 | | |
179 | 178 | | |
180 | 179 | | |
| |||
225 | 224 | | |
226 | 225 | | |
227 | 226 | | |
228 | | - | |
| 227 | + | |
229 | 228 | | |
230 | 229 | | |
231 | 230 | | |
| |||
0 commit comments