GitHub repository: slittleton/HTML5-Canvas-with-React-boilerplate
Primary language: JavaScript
Created: 2019-11-13T16:55:54Z
Description: This is a simple react app that contains the boilerplate for an HTML5 Canvas element. It contains a component called Canvas that uses hooks to create a Ref for the canvas element to live in. It also sets up a few functions that refresh the drawing/animation on page resize and another that keeps track of the xy position of the mouse in state.