Using a data fetching library is preferred as following solutions will simplify the logic of data fetching in your project with tons of amazing built-in features.