Tamal DasforThe Tamal Talks 🥑tamal-writes.hashnode.net·Apr 7, 2023Don't fetch data with useEffect, use this instead 👇Why I gave up on useEffect ? Don't use useEffect for every damn state update!It'll slow your app down and cause unnecessary re-renders. And if you forget to clean up after yourself or you'll end up with memory leaks that'll ruin your app's performanc...Discuss·75 likes·514 readsJavaScript
David HerbertforFlyCode Blogjpv-1649076767739.hashnode.net·Jun 15, 2022A Beginners Guide to Mastering the useEffect Hook in ReactHooks have come to play a major role in React component development, specifically in functional components as they have completely replaced the need for class-based components, which was initially the traditional go-to method for creating components ...Samuel Jarvis Adeyemi and 2 others are discussing this3 people are discussing thisDiscuss·71 likes·2.0K readsReactWonderful article David. This helped me to really understand how the useEffect hook really works. 3
Mawit GadforMBGCodemawit.hashnode.net·Jun 17, 2022Featuredwhy do your react components render twice?intro Yes! I can imagine how frustrating it can be huh? You just started your new react app, or you have been working on a project for a while, and have noticed the unpleasant double rendering of your react components which affects especially the u...Daniel Rodríguez Rivero and 3 others are discussing this4 people are discussing thisDiscuss·62 likes·2.1K readsReact
Success Godswill ChibuzoforGdevgodswillch.hashnode.net·Apr 15, 2023React useEffect Explained for BeginnersReact useEffect is a powerful hook that allows developers to manage side effects in functional components. With useEffect, you can easily handle scenarios such as fetching data, subscribing to events, or performing cleanup operations. One common use ...Discuss·2 likes·26 readsuseEffect
Apratim Jaiswalforapratimjaiswal.hashnode.net·Apr 8, 2023A Guide to 'useFocusEffect' from React NavigationReact Navigation is a popular library for building navigation in React Native applications. One of its useful features is the useFocusEffect hook, which allows you to run code whenever a screen comes into focus. In this blog, we will discuss what use...Discuss·63 readsReact Native
Tamal DasforThe Tamal Talks 🥑tamal-writes.hashnode.net·Apr 7, 2023Don't fetch data with useEffect, use this instead 👇Why I gave up on useEffect ? Don't use useEffect for every damn state update!It'll slow your app down and cause unnecessary re-renders. And if you forget to clean up after yourself or you'll end up with memory leaks that'll ruin your app's performanc...Discuss·75 likes·514 readsJavaScript
Emmanuel OlokeforEmmanuel's Blogemmanueloloke.hashnode.net·Apr 7, 2023React's useEffect vs. useSWR: Exploring Data Fetching in React.Introduction The concept of data fetching in React applications is of high importance as it is often necessary to fetch data from an external source, such as an API or a database, and use that data to render components. React provides several ways to...Discuss·5 likes·63 readsReact
Durgesh UpadhyayforScaling Startups with Full-Stack Devudurgesh6.hashnode.net·Mar 29, 2023useEffect Vs useLayoutEffectAs a React Developer, it's important to understand the difference between useEffect and useLayoutEffect hooks in React. Understanding them gives a better picture of how these two hooks work and when we can use them! Both useEffect and useLayoutEffect...Discuss·52 readsuseEffect
Sanchit BajajforSanchit Bajaj's blogsolitrix02.hashnode.net·Mar 22, 2023Need of useEffect Cleanup FunctionHello fellow developers, in this blog you will learn about the cleanup function of useEffect() which I feel that many new react developers ignore. Many new developers think that it is too complex to understand and skip over that part but it is one of...Discuss·20 likes·31 readsuseEffect
Shubham SinghforShubham Developer's Blogshubhambhoj.hashnode.net·Mar 22, 2023Why can't we have asynchronous callback function in useEffect()Async calls in javascript can help us in API calls and fetching data from server, but why is it we can't use async calls with useEffect like shown below: useEffect( async () => { // api call or data fetch }, []) // It gives an ERROR... We can not ...Discuss·26 readsReact
Sanchit BajajforSanchit Bajaj's blogsolitrix02.hashnode.net·Mar 13, 2023Developers might be using useEffect wrong this whole timeHi there everyone 👋, if you're a React Developer then there might be the case that you're misusing the useEffect hook in one way or another. I also have been misusing the react useEffect() hook for a very long time. So in this blog, I am going to he...Discuss·10 likes·41 readsuseEffect
Onyewuchi EmekaforMarrnuel’s Blogmarrnuel.hashnode.net·Mar 9, 2023"Simplify Your Data Handling: Learn to Load JSON Files into React with UseEffect, UseState, and Fetch API"Fetching data objects or trying to access an array of data from a json file could be quite a hassle as compared to simply importing the file from the file path and then reading the data using a map method. However, the former is considered more of a ...Discuss·44 readsReact
Sawan Kumar JhaforSawan Kumar Jhatechysawan.hashnode.net·Mar 7, 2023UseEffect Hook in react jsuseEffect is a React hook that allows you to perform side effects in your functional components. Side effects are actions that are performed outside of the component, such as updating the document title or making an API call. Here's an example of how...DiscussuseEffect