docs: add plaintext language to code block to prevent layout breaks (#2745)

This commit is contained in:
87xie 2024-09-18 11:20:38 +08:00 committed by GitHub
parent b93e11681d
commit 18c0a3d97d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -105,7 +105,7 @@ const action = useMainStore((state) => {
The error message will be something like this:
```
```plaintext
Uncaught Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.
```