I'm doing a FrontEndMentor project, and I have menu like this. API specifically has all those options available.
My question is, is it better to simply make a function that does that manually, without API. or should I simply fetch the data any time any of these options is changed?(This seems ridiculous to me, but may be a fun practice).
What is the best practice in this situation? Does it depends on the size of the project as well?