Skip to content

Commit d17f776

Browse files
authored
updated link to effect hook doc
1 parent 2d0f226 commit d17f776

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/2/en/part2c.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ What's not immediately obvious, however, is where the command <em>axios.get</em>
362362

363363
### Effect-hooks
364364

365-
We have already used [state hooks](https://react.dev/learn/state-a-components-memory) that were introduced along with React version [16.8.0](https://www.npmjs.com/package/react/v/16.8.0), which provide state to React components defined as functions - the so-called <i>functional components</i>. Version 16.8.0 also introduces [effect hooks](https://reactjs.org/docs/hooks-effect.html) as a new feature. As per the official docs:
365+
We have already used [state hooks](https://react.dev/learn/state-a-components-memory) that were introduced along with React version [16.8.0](https://www.npmjs.com/package/react/v/16.8.0), which provide state to React components defined as functions - the so-called <i>functional components</i>. Version 16.8.0 also introduces [effect hooks](https://react.dev/reference/react#effect-hooks) as a new feature. As per the official docs:
366366

367367
> <i>The Effect Hook lets you perform side effects on function components.</i>
368368
> <i>Data fetching, setting up a subscription, and manually changing the DOM in React components are all examples of side effects.</i>

0 commit comments

Comments
 (0)