I'm struggling with trying to get a canvas to be dynamically resized to fill the bottom part of a web page when the browser resizes. The canvas will be resized correctly when increasing the browser window size, but will remain the same size when decreasing the browser window size.
How can I get the canvas to shrink in size along with the browser window?
Here's where I'm at now: https://codesandbox.io/s/thirsty-pare-vk4yb