-
Notifications
You must be signed in to change notification settings - Fork 0
State Management
GarvxT edited this page Mar 26, 2026
·
1 revision
The project uses React Context API for global state.
There are two main global stores:
- AlgorithmContext
- DataStructureContext
Global state is used for:
- Speed
- Array Size
- Grid Size
- Running State
- Stop Button
- Input Values
Context → Custom Hook → Page → Components
Custom hooks used:
- useSorting
- useSearching
- useGridTraversal
- useTraversal
- useStack