Populating react components from data from the server.