reactjs - How does a canvas library fit in the Flux Pattern and React? -


i how flux focuses on separation of concerns , unidirectional data flow, makes me wonder how should incorporate canvas library fabricjs.

fabricjs creates object model on native canvas element extend , simplify functionality. question whether initialize fabricjs canvas element in view (react component) , handle actions on canvas directly in view , store , update canvas state or set canvas element in view , register canvas actions store , use view dispatch actions?

just send actions store , listen changes canvas if there updates - update canvas. goes action, action calls store saves data , emits changes. component listens changes , updates it's state , view.


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -