Starting new React projects is a huge hassle, there were dozens of dependencies and configuration files, For example, setting up Babel to transpile JSX into the browser-ready code, and configuring Webpack to bundle your project assets etc.
The reason is
React itself doesn’t have any allegiance to any particular way of fetching data. React simply renders components, using data from only two places: props and state. To use some data from the server, you need to get that data into your components’ props or state.
So, How can you make an AJAX call in React?