DEV Community

DINH VAN KHOI
DINH VAN KHOI

Posted on

What is side effect? What is that term in React?

Hello, I'm reviewing the issue of Hook React. I've never approached the React class so I don't understand how it works. As for the [side effect] part, what is it? To understand it, I can't grasp anything. Whenever I should use it, when it comes to using the useEffect hook in React, I have also searched the documentation about it, but there is no satisfactory answer. I want to know how to get the side effect, and should I use useEffect in it? Which case? , in some cases I have carefully considered that useEEfect is only used when working with web-Api, specifically if you can use callbacks, then use useEffect? is wrong

Top comments (0)

The best way to debug slow web pages cover image

The best way to debug slow web pages

Tools like Page Speed Insights and Google Lighthouse are great for providing advice for front end performance issues. But what these tools can’t do, is evaluate performance across your entire stack of distributed services and applications.

Watch video

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay