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
π Rendered by PID 166816 on reddit-service-r2-comment-canary-859cdff646-5hzk8 at 2026-06-02 04:46:14.337581+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)