We agreed that utilizing the slicing feature on the drawImage()
canvas method would allow us to split our image into segmented pieces
to be interacted with by the user. Below are the documented decisions that were made in the initial steps of this process
- Initial attempt was to target html
ref="canvas"
and utilize accordingly as is traditionaly done in vanilla JS, this threw the below error from React
- Second attempt will be to utilize
useRef()
orcreateRef()
as recommended above