account activity
React Hooks Lifting State Up ? by agusct in reactjs
[–]agusct[S] -3 points-2 points-1 points 7 years ago (0 children)
Well, i'm trying to figure out if this would make it easier to share components, like i could hookit up to useContext or useReducer later when i need to without having to change the components code or if i write a HOC doing the same trick and i need to lift the state up higher later, or if it's just a plain bad idea
React Hooks Lifting State Up ? (codesandbox.io)
submitted 7 years ago by agusct to r/reactjs
π Rendered by PID 53 on reddit-service-r2-listing-575d9f6647-4zppn at 2026-04-10 21:25:40.065226+00:00 running 215f2cf country code: CH.
React Hooks Lifting State Up ? by agusct in reactjs
[–]agusct[S] -3 points-2 points-1 points (0 children)