Open JonathanSchwob opened 1 year ago
tiny — Yesterday at 7:00 AM I suggest starting here: https://react.dev/learn/scaling-up-with-reducer-and-context This will pull some of your state out of the components, then you can start to break the components up into smaller files while still having access to that state. It helps avoid prop drilling too. ZachWasTaken — Yesterday at 5:03 PM either model it as a tree of data and use useReducer if you want to do it the functional programming way, or create separate objects that handle their own state if you want to do it the oop way. i think making a tree and useReducer is easier
right now there are a ton of single useState calls.
we should research whether its cleaner to consolidate them into grouped useReducer call if so, consolidate