EthanforWhat The Heckwth.hashnode.dev·Nov 10, 2024WTH is ZUSTANDIntroduction If you’re a developer , or listen to convos. of devs. you will find them crib about the state management. What is state management ?? Well, just say passing down of values from one compenent to another ( child or sibling ), and managing ...DiscussLearn Zustandzustand
Oleksandr VlasovforRoyalZSoftwareroyalzsoftware.de·Oct 23, 2024React Hooks — createContext, useContext, useMemoAs a junior React developer, I recently worked on a project to build a Todo Application using React with TypeScript. The goal was to build a functional app and dive deeper into React features like useState, useMemo, and especially useContext for stat...Discuss·56 readsJavaScript
Yahya Dahiryahyadahir.hashnode.dev·Sep 12, 2024Managing State in React Without Redux: Simpler and Smarter AlternativesIf you have worked with React before, you‘ve probably heard of Redux. It’s a state management tool that helps keep track of data ( or “state” ) in your React apps. While Redux is a powerful, it can feel a bit heavy, especially for smaller projects or...Discuss·1 likeNext.js
SURVEERsurveer.hashnode.dev·Aug 31, 2024Guide For Managing Global States in ReactIntroduction Hi Guys! Welcome back to my blog with a guide for managing global states in react. While building your react app you’ll find many problems when you are not using the global states in your web app. As the applications grow in complexity, ...Discuss·37 readsReact
Brendah Kiragucoderbree02.hashnode.dev·Aug 20, 2024State Management in React with ContextReact Context and the useContext As I embarked on learning React, I was first introduced to props. Props offer a straightforward way to pass data from parent to child components. This method worked well when passing data from a parent to an intermedi...DiscussReactHooks
Saksham Gupta0xsaksham.hashnode.dev·Aug 6, 2024Falling in Love with ReactJSTIL, ReactJS docs are really good and I am starting to get a better hang of how hooks really work. useContext The most important thing in daily life of a ReactJS developer maybe the context providers. NextJS provides them pre written and ready to use...Discuss·40 readsReact
Ayush KumarforNamaste React - Blognamaste-react.hashnode.dev·Jul 26, 2024useContext() - React Hooks1. Set Up the Context create a file called ThemeContext.js and add the below code // 📂 context/ThemeContext.js import React, { useState, createContext } from "react"; // Create context object // const ThemeContext = React.createContext(); const The...Discuss·1 likeReact
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
Jacob Gonzalesbabygonzo.hashnode.dev·Jul 1, 2024Simplifying State Management in React with "useContext"In a React application, passing data from parent components to child components using props is a common practice. However, as your application grows, managing state and passing props through multiple layers of components can become cumbersome and err...DiscussGeneral Programming
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·46 readsReact