DEV Community

Discussion on: Excalidraw state management

Collapse
 
sg1705 profile image
Saurabh Gupta

Thanks for explaining the state management in Excalidraw.

After reviewing the code in the sandbox, I couldn't understand why "ActionManager" has to be initialized inside a React component. Like global state, can it not be initialized outside of the component . Action manager doesn't hold state, it just transforms it.