Unable to see key value in React or Chrome devtools
问题 Consider the following JSX with an intentionally added duplicate key: <table> <tbody> <tr key="row1"> <td>row1_col1</td> </tr> <tr key="row1"> <--- same key here <td>row2_col1</td> </tr> </tbody> </table> As expected this leads to index.js:1 Warning: Encountered two children with the same key, row1 . Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change