고라니드로koranidro.hashnode.dev·Sep 7, 2024[React] 당신은 상태를 필요로 하지 않을 것입니다. #5 - 부작용 편이 포스트는 React 버전 18.3.1을 기준으로 합니다. 잠깐! 동시성 렌더링에 대해 아직 잘 모른다면 [React] 변화의 물결, 동시성 렌더링을 먼저 읽어보세요! 부작용(정리가 필요한)을 가진 상태는 어떻게 해야 할까요? 렌더링과 커밋이 반드시 한 쌍을 이루지는 않으므로 상태를 렌더링 중 생성하고 useEffect를 통해 정리 함수를 호출하는 것은 적절치 않습니다. React 개발팀은 의도적으로 부작용을 관련 기능을 통해서 처리하도록 ...[React] 당신은 상태를 필요로 하지 않을 것입니다.React
Armaan Singharmaansingh.hashnode.dev·Aug 9, 2024#001 | Don't use Smartphone before sleeping😴Here's why ?Using a smartphone before sleeping can significantly disrupt both our sleep cycle and the quality of our mornings. The blue light emitted from screens interferes with the production of melatonin, the hormone responsible for regulating sleep-wake cycl...27 readsovercome
Gurjot SinghforThe Dev Folksthedevfolks.com·May 18, 2023Mastering React Hooks: Side EffectsIn React, side effects are any actions that are performed outside of rendering a component, such as fetching data or updating the document title. React provides two main hooks for managing side effects: useEffect and useLayoutEffect. useEffect The us...Mastering React HooksReactHooks
Mohamed Abdellahi Haibeltymohamedabdellahihaibelty.hashnode.dev·May 14, 2023React.useEffect(): The Ultimate Guide to Managing Side Effects in Functional ComponentsAre you a React developer struggling to wrap your head around the useEffect hook? You're not alone! Despite its popularity, this hook can be tricky to use correctly and efficiently. But fear not! In this post, we'll dive deep into the useEffect hook ...1 like·63 readsReact
Vinay Kushwahaiamvinayvk.hashnode.dev·Feb 3, 2023What are Pure functions?While working on the projects we always get to hear the term Pure functions, but what are Pure functions and why should we use Pure Functions? Let's find out. Pure Functions are functions that have the following characteristics- Pure functions alway...Functional Programming
Ali Eren Şenappcircle.hashnode.dev·Oct 7, 2022Jetpack Compose Side Effects – With ExamplesRecompositions and states are the main parts of Jetpack Compose. Here’s how to manage states without getting affected by recompositions. We’ll use Jetpack Compose Side Effects API’s and inspect each method one by one. Why manage states outside compos...5 likes·67 readsAndroid