Skip to content

Commit 7f9a665

Browse files
fix conflict
1 parent 342e1d4 commit 7f9a665

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/content/learn/synchronizing-with-effects.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -598,9 +598,6 @@ input { display: block; margin-bottom: 20px; }
598598
599599
下面提供一些常用的 Effect 应用模式。
600600
601-
<<<<<<< HEAD
602-
### 控制非 React 组件 {/*controlling-non-react-widgets*/}
603-
=======
604601
<Pitfall>
605602
606603
#### Don't use refs to prevent Effects from firing {/*dont-use-refs-to-prevent-effects-from-firing*/}
@@ -628,8 +625,7 @@ See the examples below for how to handle common patterns.
628625
629626
</Pitfall>
630627
631-
### Controlling non-React widgets {/*controlling-non-react-widgets*/}
632-
>>>>>>> 0b9ae66066cccce35832c35097d6cafacd99c098
628+
### 控制非 React 组件 {/*controlling-non-react-widgets*/}
633629
634630
有时需要添加不是使用 React 编写的 UI 小部件。例如,假设你要向页面添加地图组件,并且它有一个 `setZoomLevel()` 方法,你希望调整缩放级别(zoom level)并与 React 代码中的 `zoomLevel` state 变量保持同步。Effect 看起来应该与下面类似:
635631

0 commit comments

Comments
 (0)