Browse Source

Remove superfluous word 'like' (#5813)

'Your Effect would look like similar to this' -> 'Your Effect would look similar to this'
main
Tristan 2 years ago
committed by GitHub
parent
commit
f68a91bb7e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/content/learn/synchronizing-with-effects.md

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

@ -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*/} ### 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 ```js
useEffect(() => { useEffect(() => {

Loading…
Cancel
Save