I love the way Flux focuses on the separation of concerns and unidirectional data flow, but it also makes me wonder how I should include a canvas library such as fabricJS .
FabricJS creates an object model on its own canvas element to extend and simplify functions. My question is whether to initialize the canvas FabricJS element in the View (React) component and process all actions on the canvas directly in the view and save and update the state of the canvas or by setting the canvas element in the View and then register all actions with the canvas in the Store and use the view to submit actions?
source share