App.tsx Modularization Refactor
- Refactored large UI sections out of
src/App.tsxinto focused components:src/components/AppHero.tsxsrc/components/AutomatonEditorPanel.tsxsrc/components/AutomatonVisualizationPanel.tsx
- Updated
src/App.tsxto act as an orchestration layer for state + handlers while delegating render blocks to the new components. - Added shared handler helpers in
src/App.tsxto reduce repeated per-automaton update logic:updateSelectedUiStatehandleSimulationInputChangehandlePreviousStephandleNextStephandlePauseAutoPlay
- Consolidated simulation panel props into a single
simulationPanelPropsobject passed to the visualization component. - Switched
Appdeclaration toReact.FCtyping for consistency with the extracted components. - Added functionality to other Automata types and made the sim work properly
0
Log in to leave a comment