I just started on React and Web Development.
I am developing a reusable component which is a popup list that will fetch data from the server and retrieve it so the user can choose one option (imagine a popup to choose a supplier from a list).
For now, I fetch the data from the server, load it in an array and pass it via props and it works fine. But I am worried with data volume.
If the amount of data is small there will be no problem.
But what if there is a big amount of data?
Should I load the array with that big amount with no worries?
Should I be fetching data in smaller pieces? If so, how should I do it?
What do you think it is a best practice here?
Thank you in advance!