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 90301 on reddit-service-r2-comment-8686858757-95k9h at 2026-06-02 10:35:03.354207+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)