title: Export react component as JPG and save to project folder
body: <p>I have a react component that consists of a table that I'd like to export as a Jpeg. I have found libraries such as react-component-export-image, but this exports the image and then asks the user where they'd like to save the image. I'd like to save the image automatically to a folder in the project, without having the user have to go through the File Explorer. Basically, they just click a button on the page and then the image is saved in a folder within the project. Can anyone point me in a direction on how to do this?
  Thanks in advance!</p>