Filter
Exclude
Time range
-
Near
3/ Context API vs Redux Context: for passing data (like theme, auth) without prop drilling Redux: for global state management (especially with complex state logic) Use Context for light sharing Use Redux/MobX/Zustand for heavy lifting #ReactContext #Redux #React
1
3
32
Key Steps to Use Context API 1️⃣ Create a Context 2️⃣ Provide state using Context Provider 3️⃣ Consume it with useContext() Hook 🔹 Works great for theme, authentication, & global settings! 📖 Full guide here: crsinfosolutions.com/reactjs… #ReactContext #ReactDev

1
4
17
Day 54: Wrestling with React Context API! 🤯 Finally grasped the concept of state management. Feeling much more confident in building complex components. #webdev #reactjs #reactcontext #100DaysOfCode #programming #webdeveloper #learningtocode
6
61
🌐 Insightful talk by @{Greg Brimble} on #AsyncLocalStorage vs. #ReactContext in #JavaScript runtimes. Valuable distinctions for developers! #reactservercomponents gitnation.com/contents/async…

2
294
Day 35 of learning Next.js🎉 In the process of utilizing ReactContext api to add a new feature to the ongoing project, I created a Notification Context to handle notifications(show/hide) that serve as feedbacks to the users. Cheers!🥂 #100daysofcodechallenge #100daysofcode
2
6
23
424
ReactContextは論外でマウスの動きに合わせて変化する値をここで管理すると無限ループするという。やってみたら恐ろしいグリッチと共に盛大にぶっ壊れた。
10
2,999
Day 34 of learning Nextjs🎉 In this new step of learning Nextjs, I'm learning how to utilise ReactContext Api. Adding a new feature to the project to provide feedback to people who provide their email addresses for the newsletter. 🥂✨ #100dayscode #100daysofcodechallenge
1
3
19
298
Programmed a logic for Add to cart feature, in #NxtMart(Groceries delivery app). -used #reactContext, to eliminate prop drilling in components. -created a #customHook in #react for accessing the context props. -using #localStorage for storing cart products for persistent data.
1
1
25
26 Apr 2024
To elevate user experience, @ReactHotToast provides sleek toast notifications, keeping users informed. 🔔 Harnessing #ContextAPI in React, I seamlessly manage active header state(Nav Bar) across the app. 🧠 #ReactContext #StateManagement
1
2
22
Learnt about prop drilling in reactjs passing the props to multiple components instead using the react context we can able to pass the props directly through reactContect React.createContext => create a reactcontext Consumer=> consumes value Provider=> provides the value
3
116
This code sets up a global context for user data with an initial state. The GlobalProvider component wraps the App, making user data accessible to all nested components. A simple authentication example where user info is shared seamlessly!#ReactContext #statemanagement #reactjs
4
41
I am currently learning Context API in React and almost at the finish line. Any tips to enhance my learning journey? #ReactContext #reactjs
4
97
#day31 of #100DaysOfCode just did only one task😩 I managed to migrate my app from reactContext to redux for managing favorite meals. Today I was lazy but hope to try again tomorrow💪 #buildinpublic
1
1
4
61
27 Jan 2024
Replying to @rustaceanx
Combining TanStack with ReactContext. This will replace redux completely :)
2
3
145
13 Jan 2024
... providing a clean and efficient way to manage state globally across components. It's like giving your components a shared language! 🔄💡 #ReactContext #GlobalState
1
1
4
Learnings from @akshaymarch7's #namastereact 💡 Eliminate prop drilling with `React Context`! Share data effortlessly across components. While `Redux` isn't mandatory for small projects, it shines in large-scale apps with extensive data flow. #learninginpublic #ReactContext
2
10
1,421
21 Nov 2023
Good Day React Enthusiasts!☀️ Let’s explore the React Context API. Context provides a way to pass data through the component tree without having to pass props down manually at every level. The Context API is a React structure that enables you to exchange unique details and assists in solving prop-drilling from all levels of your application. Here’s how it works: 1. Creating a Context: You start by creating a new context object. This will be used to provide and consume data. const MyContext = React.createContext(defaultValue); 2. Provider Component: It allows consuming components to subscribe to context changes. Place your provider high in your app so that all components can access the context. <MyContext.Provider value={/* some value */}> 3. Consuming Context: Use the useContext Hook in functional components or Context.Consumer in class components to access the context value. const value = useContext(MyContext); 4. Updating Context: You can dynamically update the context value from a provider. Any consuming components will re-render with the new value. 5. Use Cases: Context is ideal for sharing data that can be considered “global”, like a current authenticated user, theme settings, or UI preferences. 🌐 The Context API simplifies component communication and makes your code cleaner and more maintainable. Stay tuned for practical examples and advanced usage of the Context API! #ReactContext #GlobalStateManagement #EfficientCoding
1
1
6
281
Feel free to share your React Context experiences or ask questions! Let's keep the React discussions rolling! 👩‍💻✨ #React #ReactContext #StateManagement
1
2
18
Day 16/100 Ending my day with this error 🤯 Help needed! Trying to learn React's context and reducer hooks, but I'm facing a TypeError with action.payload. It seems to be causing issues in my React app. #100DaysOfCode #ReactContext #ReducerHooks #React #TypeError #ErrorHandling
1
5
379
Que da horinha, você sabia que da pra usar React Context em Server Components do Nextjs? ReactContext é um hook, hooks precisam ser "Client Side" mas você pode criar um "Custom Context Provider" que será client e usar ele pra envolver os componentes no layout. Massinha😁
2
11
2,137