mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 20:01:57 +00:00
Update tutorial error message to use ConsoleBlock
This commit is contained in:
@@ -2073,7 +2073,13 @@ export default function Game() {
|
||||
}
|
||||
```
|
||||
|
||||
You can see what your code should look like below. Note that you should see an error in the developer tools console that says: ``Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of `Game`.`` You'll fix this error in the next section.
|
||||
You can see what your code should look like below. Note that you should see an error in the developer tools console that says:
|
||||
|
||||
<ConsoleBlock level="warning">
|
||||
Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of `Game`.
|
||||
</ConsoleBlock>
|
||||
|
||||
You'll fix this error in the next section.
|
||||
|
||||
<Sandpack>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user