useContext → use
useContext → use
useContextでstateを共有
useContextでstateを共有
• Full Stack Open Part 6D reading and exercises
• Anki session
• useReducer and useContext tutorial
#100Devs #SoftwareEngineer #100DaysOfCode
• Full Stack Open Part 6D reading and exercises
• Anki session
• useReducer and useContext tutorial
#100Devs #SoftwareEngineer #100DaysOfCode
@ryansolid.bsky.social FYI
@ryansolid.bsky.social FYI
What do you think of the colors?
#webdevelopment
What do you think of the colors?
#webdevelopment
unlike React.js where createContext/useContext are client-only, our OCaml implementation supports context in server components, including across Suspense boundaries.
unlike React.js where createContext/useContext are client-only, our OCaml implementation supports context in server components, including across Suspense boundaries.
2014: Class state
2016: Redux
2018: useState, useReducer, useContext
2020: React query
2021: Zustand for globals
2024: useOptimistic, useTransition, useFormStatus, useActionState, RSC
2025: Tanstack DB or sync engine (Zero, Electric, Convex)
2014: Class state
2016: Redux
2018: useState, useReducer, useContext
2020: React query
2021: Zustand for globals
2024: useOptimistic, useTransition, useFormStatus, useActionState, RSC
2025: Tanstack DB or sync engine (Zero, Electric, Convex)
🎄
REACT
CONTEXT
COMPONENTS
PROPS & STATE
FUNCTIONAL CLASS
USESTATE USEEFFECT
USECONTEXT USEREDUCE USEMEMO CUSTOM HOOKS USECALLBACK REACT QUERY
⚛️
JSX
REACT
CONTEXT
REACT QUERY
COMPONENTTREE
USEEFFECTUSEEFFECT
HOOKS
⭐
IDS
RULES
CLASSES
ELEMENTS
SELECTORS
COMBINATORS
DECLARATIONS
PSEUDO-CLASSES
PSEUDO-ELEMENTS
CSS
🎄
REACT
CONTEXT
COMPONENTS
PROPS & STATE
FUNCTIONAL CLASS
USESTATE USEEFFECT
USECONTEXT USEREDUCE USEMEMO CUSTOM HOOKS USECALLBACK REACT QUERY
🍃 technical banki & anki
🍃 LOTS of work on only bangers
- nextjs 15 has been a circus getting useContext to work like i'd want, with how picky it is w/ server and client components!
- got context working w/ my api, but not a fan of the delay 🙄
🍃 technical banki & anki
🍃 LOTS of work on only bangers
- nextjs 15 has been a circus getting useContext to work like i'd want, with how picky it is w/ server and client components!
- got context working w/ my api, but not a fan of the delay 🙄
⚛️ React: events, router, useContext, useMemo, useCallback, forms
🔗 Connected React with Express
🧠 DSA: Selection, Bubble, Insertion, Merge Sort
🛠 Built a full-stack To-Do app & pushed to GitHub
#100DaysOfCode #buildinpublic
⚛️ React: events, router, useContext, useMemo, useCallback, forms
🔗 Connected React with Express
🧠 DSA: Selection, Bubble, Insertion, Merge Sort
🛠 Built a full-stack To-Do app & pushed to GitHub
#100DaysOfCode #buildinpublic
🍃 some anki and banki
🍃 #100devs huddle
🍃 worked on only bangers:
🟢 got the likes button to remember if the user clicked on it before
(since useContext is finally passing the current user id)
🟢 styling adjustments
💪 29 chinups (reps of 4 or 5)
🍃 some anki and banki
🍃 #100devs huddle
🍃 worked on only bangers:
🟢 got the likes button to remember if the user clicked on it before
(since useContext is finally passing the current user id)
🟢 styling adjustments
💪 29 chinups (reps of 4 or 5)
let's just start at day 55 (day 54 was 20 days ago & i was coding but just not recording in between that time but i'm feeling comfortable again)
🐈 i learned about useRef and useContext in React
🐈 i built things based on what i learned about useRef
🐈 still struggling w/...
let's just start at day 55 (day 54 was 20 days ago & i was coding but just not recording in between that time but i'm feeling comfortable again)
🐈 i learned about useRef and useContext in React
🐈 i built things based on what i learned about useRef
🐈 still struggling w/...
Struggling with prop drilling? Learn how to simplify your state management using useContext in React. 💡
📺 Watch now → youtu.be/rP5T-otPMVg?...
#ReactJS #useContext #JavaScript #WebDev #LearnReact #Coding #Frontend #TechWithTwin
Struggling with prop drilling? Learn how to simplify your state management using useContext in React. 💡
📺 Watch now → youtu.be/rP5T-otPMVg?...
#ReactJS #useContext #JavaScript #WebDev #LearnReact #Coding #Frontend #TechWithTwin
#react #webdev #buildinpublic
#react #webdev #buildinpublic
I forgot to post yesterday so here's some updates! I got useContext figured out and now when I select a vendor search result I can see their whole profile and decide if I want to book them for my wedding. I'm still working on the designs of the profile pages.
#100Devs
I forgot to post yesterday so here's some updates! I got useContext figured out and now when I select a vendor search result I can see their whole profile and decide if I want to book them for my wedding. I'm still working on the designs of the profile pages.
#100Devs
🔁 useState – Local state
📡 useEffect – Side effects
📦 useContext – Global state
🧠 useMemo – Memoize calcs
🔄 useCallback – Stable funcs
🔎 useRef – Persistent values
🎣 useReducer – Complex state
💡 useContext = no prop drilling
.
#webdevelopment #webdesign#reactjs#javascript
🔁 useState – Local state
📡 useEffect – Side effects
📦 useContext – Global state
🧠 useMemo – Memoize calcs
🔄 useCallback – Stable funcs
🔎 useRef – Persistent values
🎣 useReducer – Complex state
💡 useContext = no prop drilling
.
#webdevelopment #webdesign#reactjs#javascript
question: is this an acceptable way to use RNGH? I don't want the identity of `nativeGesture` to change, so as `drawerGesture` changes I just keep adding them endlessly in an effect
seems cursed but fixes a gnarly perf problem!
question: is this an acceptable way to use RNGH? I don't want the identity of `nativeGesture` to change, so as `drawerGesture` changes I just keep adding them endlessly in an effect
seems cursed but fixes a gnarly perf problem!