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 - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -