From JSON reponse, how to populate both html elements (span, button, image) and also assign the values. Advantage: we can directly deploy web pages from the server by just sending json response.
The is a simple Proof-of-Concept code for this idea.
Inspired from: https://github.com/gkhan205/react-reusable-table-component