Cloud Stack Ninja

I newbie in react js. I am building a 4-5 pages website using react js. In all the pages, there is an API called category. What is the best way to request this API once and use the same data for all pages where needed? I tried to find on google but did not come to a satisfactory result so your guide will help to save the client resource to call the same API for every component or pages again and again.

thanks a lot!!!



Read more here: https://stackoverflow.com/questions/64399034/how-can-i-reuse-the-api-data-for-all-the-pages-in-react-js

Content Attribution

This content was originally published by Gaurav Narula at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: