How do you structure large components with multiple logic parts?
In my older project, I made the mistake of writing all logic inside one component file, which made the code hard to maintain and debug. Now I’m considering splitting the logic into separate classes that get passed the component and then doing all logic from there. But I'm wondering if there’s a better design pattern I should follow. Maybe behavior modules? State machines? Multiple components? How do you structure your complex component logic? Would love to hear what works for others.
Solution
1 what is your usage case
2 I think composition, it means to keep it half hardcoded / half encapsulated parts
2 I think composition, it means to keep it half hardcoded / half encapsulated parts
