I have several react components from which i want to get a component as html string to send to server .
lets say the component i want to send is <ReportComponent />
how it can be done.
I tried
onRouteChanged = () => {
console.log(<ReportComponent />);
};
but this is not giving me as html.
Scenario is this
On click of a send button the currently viewing component on client machine should be send to the server to save as a report .