I made a color picker with React and Canvas. Currently the components are rendered in React and canvas is done with vanilla javascript. I\'d like to two to mesh more, so I w
Here's the React way to remove a canvas from your component:
const canvas = ReactDOM.findDOMNode(this.refs.canvas);
const context = canvas.getContext('2d');
ctx.clearRect(0, 0, canvas.width, canvas.height);
As long as you can target the DOM Node the react way, you can pretty much access the Canvas Rendering API.