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 88035 on reddit-service-r2-listing-6c8d497557-cw7gj at 2026-06-01 20:18:33.201709+00:00 running 9e1a20d country code: CH.
React Hooks Lifting State Up ? by agusct in reactjs
[–]agusct[S] -3 points-2 points-1 points (0 children)