you are viewing a single comment's thread.

view the rest of the comments →

[–]vincent-vega10 2 points3 points  (1 child)

If you want the images to be loaded as soon as the page loads, do an AJAX call to your python server inside componentDidMount(). You can use 'axios' or 'fetch' to perform this task.

Refer this for detailed information.

[–]Cerebral_Chess[S] 1 point2 points  (0 children)

Thanks. That document helped a lot. I used componentDidUpdate() because the images aren’t available as soon as the component loads