I have to create a web page with React, populate it with foreign data from an API, and then export it to static HTML so that it can be sent as an email template to users. How can I achieve this?
I can create the application itself, and populate it with data, but is there some elegant way to take a snapshot of the app after it has the necessary asynchronous data, and make a file out of it that I can send through email?
I've only used React to develop web apps in the past, so im not sure what to look for but so far I have found React-Snap which seems like it may help me achieve this.
The end result should be some HTML that I can send in an email to users which is visually the same as the react application when it is running after being populated with data.