Shiwanshu Shubhamshiwanshudev.hashnode.dev·Aug 9, 2024Simple Guide to Creating Custom HooksCustom hooks are reusable pieces of logic we create for specific functions. They are generally made up of other hooks used inside them. They are named with "use" followed by the functionality of the hook. For example, useFetchData. According to Rea...Discusscustom-hooks
Aniket Dhaygudeaniket04blog.hashnode.dev·Jul 18, 2024Why We Use useEffect in React: Easy Explanation and GuideIntroduction React has revolutionized the way we build user interfaces, and with the introduction of Hooks in React 16.8, managing state and side effects has become simpler and more intuitive. One of the most powerful and commonly used Hooks is useEf...Sarfraz Ashrafi and 1 other are discussing this2 people are discussing thisDiscuss·19 likesuseEffectsimple and easy to read 10
Tharusha Nirmal Amarasooriyatharuxpert.hashnode.dev·Jul 12, 2024React Hooks ( useState & useEffect )Hooks are functions that let developers "hook into" React state and lifecycle features from function components.These Hook features were introduced in React version 16.8. React Hooks Rules 👉 Hooks should be called inside a React function Don’t call...Discuss·2 likesReact
Animesh Kumaranimeshk.hashnode.dev·Jul 7, 2024Understanding React HooksReact Hooks are a powerful feature that allows you to use state and other React features without writing a class. Introduced in React 16.8, hooks have changed how we write React applications by making code simpler and more readable. In this blog, we ...Discuss·10 likesReact
Marcos S.marcoss.hashnode.dev·Jul 3, 2024Never `useEffect` again or YOU_WILL_BE_FIREDThe study case You Might Not Need an Effect was released, at the very least, a couple of years ago now. It has really helped! Dan did an amazing job and collected a bunch of feedback on Twitter while writing the whole section around `effect`s. Howeve...Discuss·2 likes·391 readsJavaScript
Nghia Tieucswithtieu.hashnode.dev·Jun 30, 2024Q1. Life cycle của useEffect trong React Native?Trong React Native, useEffect là một hook dùng để xử lý các side effect trong các functional component. Hiểu rõ life cycle của useEffect sẽ giúp bạn biết khi nào và tại sao nó được gọi. Dưới đây là giải thích chi tiết về life cycle của useEffect: Mou...DiscussPhỏng vấn react nativeReact Native
Mohsin Khansabmohsinkhansab.hashnode.dev·Jun 29, 2024Key React Hooks Explained: useState, useEffect, and useContextuseState() The purpose of useState is to handle reactive data. Any data that changes in the application is called state. When the state changes you want react to update the UI, so the latest changes are reflected to the end user. How to use it? const...Discuss·29 readsReact
Benjamin Azoulaybenjaminazoulay.hashnode.dev·Jun 27, 2024How to Build the Perfect Custom useEffect HookI'll get straight to the point of this tutorial. We want our useEffect to fetch async data and store it, with two important safety standards: If a dependency updates before the async call in useEffect is completed, a new async call will be made. If ...DiscussReact
Olga Nedelcuolgaconstantina.hashnode.dev·Jun 23, 2024Lifting State through components using Props, useState(), and useEffect()Introduction How do you use useState() and useEffect() hooks effectively? Understand the concept of lifting state Manage state and pass data between several components. Managing Internal State - useState() The useState() hook is crucial for savi...Discuss·2 likes·49 readsReact
Dhananjoy Mahatadhananjoymahata.hashnode.dev·Jun 2, 2024Easy Ways to Get Device Width in React ComponentsWhen developing responsive web applications, it's crucial to adapt your layout and design to various screen sizes. React makes it easy to manage state and lifecycle events, which can be leveraged to handle screen size changes dynamically. In this blo...DiscussReact