Skip to content

Commit

Permalink
Update src/content/blog/2022/03/08/react-18-upgrade-guide.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Yucohny authored Jul 14, 2023
1 parent d919a3b commit a26040d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/blog/2022/03/08/react-18-upgrade-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const root = hydrateRoot(container, <App tab="home" />);

<Note>

**如果你的应用升级后无法工作,请检查它是否被 `<StrictMode>` 包裹**[严格模式在 React 18 中变的更加严格](#updates-to-strict-mode)并且不是所有组件都可以弹性应对它在开发模式中添加的新检查。如果移除 Strict Mode 可以修复你的应用,你可以在升级期间移除它,然后等你修复它指出的问题之后再添加回来(可以在树的顶部或者其中一部分)
**如果你的应用升级后无法工作,请检查它是否被 `<StrictMode>` 包裹**[严格模式在 React 18 中变得更加严格](#updates-to-strict-mode)并不是所有组件都可以弹性应对它在开发模式中添加的新检查。如果移除严格模式可以修复你的应用,你可以在升级期间移除它,然后等你修复它指出的问题之后再在树的顶部或者其中一部分添加回来

</Note>

Expand Down

0 comments on commit a26040d

Please sign in to comment.