title: How can I use Fabric.js with React?
body: <p>I have an application using heavily HTML5 canvas via <a href="http://fabricjs.com/">Fabric.js</a>. The app is written on top of <a href="https://angular.io/">Angular</a> 1.x, and I am planning to migrate it to <a href="https://facebook.github.io/react/">React</a>. My app allows writing text and drawing lines, rectangles, and ellipses. It is also possible to move, enlarge, shrink, select, cut, copy, and paste one or more of such objects. It is also possible to zoom and pan the canvas using various shortcuts. In short, my app utilizes Fabric.js to its full extent.</p>
  
  <p>I couldn't find much information on how to use Fabric.js together with React, so my concern is that 1. is it possible without major modifications, and 2. does it make sense or should I instead use some other extensive canvas library that has better support for React?</p>
  
  <p>The only example of React+Fabric.js I could find, was <a href="https://github.com/sonnylazuardi/react-komik">react-komik</a>, which however is much more simpler than my app. My main concerns are the event processing and DOM manipulation of Fabric.js, and their effect on React.</p>
  
  <p>There seems to be also a canvas library for React, called <a href="https://github.com/Flipboard/react-canvas">react-canvas</a>, but it seems lacking a lot of features compared to Fabric.js.</p>
  
  <p>What do I have to take into account (regarding DOM manipulation, event processing, etc.) when using Fabric.js in a React app?</p>