4 ms·
Maybe I'm not the target audience, but I have no clue what "useEffect" does or why it is important. An introduction on the subject (including which language is
by miccah 8y ago
Maybe I'm not the target audience, but I have no clue what "useEffect" does or why it is important. An introduction on the subject (including which language is being discussed) would be really helpful.
- bzalasky 8y agoIn the JavaScript UI library React, useEffect is a hook (recent addition to the library) that allows you to perform side effects in function components. https://reactjs.org/docs/hooks-effect.html https://reactjs.org/docs/hooks-effect.html
- agrippanux 8y agoReact 16.8 introduced a new concept of hooks, "useEffect" being a built in one. Hooks are extremely useful for streamlining and reusing React component code. "useEffect" in particular can supplant the "componentDidMount" method which among other things is common for fetching data into a component. There are some gotchas to be aware of when using "useEffect" and this article is explaining them.
- uhryks 8y agoThere's a link in the first sentence of the article. It would have taken you less time reading it than it probably took you to write this comment.
- lkbr 8y agoAlso "This article assumes that you’re somewhat familiar with useEffect API." with another link a little further down.