Remove superfluous word 'like' (#5813)

'Your Effect would look like similar to this' -> 'Your Effect would look similar to this'
This commit is contained in:
Tristan
2023-03-24 19:30:00 +01:00
committed by GitHub
parent 9f89fff57c
commit f68a91bb7e

View File

@@ -600,7 +600,7 @@ Most of the Effects you'll write will fit into one of the common patterns below.
### Controlling non-React widgets {/*controlling-non-react-widgets*/}
Sometimes you need to add UI widgets that aren't written to React. For example, let's say you're adding a map component to your page. It has a `setZoomLevel()` method, and you'd like to keep the zoom level in sync with a `zoomLevel` state variable in your React code. Your Effect would look like similar to this:
Sometimes you need to add UI widgets that aren't written to React. For example, let's say you're adding a map component to your page. It has a `setZoomLevel()` method, and you'd like to keep the zoom level in sync with a `zoomLevel` state variable in your React code. Your Effect would look similar to this:
```js
useEffect(() => {