Using a JS canvas element to efficiently render grids, in both vanilla and react — Representing reactive spaces is kind of what javascript is all about — whether the space is a div, a button, a form, or any other of a range of different things. Most of these components are incredibly versatile, as is characteristic of javascript, but sometimes highly complicated elements with lots…