Need suggestion if we can use DOM in the React. While it's not a good React practice, the other option that I know of is to use jsdom which seems to be too much.
Right now I hard coded the canvas size. Let me know how to approach this best.
Thhank you for this update. I am reworking the editor to use a text editor with syntax highlighting. With that these changes will be gone. I will however copy /paster you onDowonloadPng into the new code base.
32
Adds basic PNG download.
jsdom
which seems to be too much.