October 8, 2022
So it was time for me to learn how to interact ๐ with backend with a react App.
And I used Axios to do so.
Axios is a simple promise-based HTTP client for the browser and node.js.
Axios provides a simple-to-use ๐ library in a small package with a very extensible interface.
So I coded ๐จโ๐ป a simple react app which:
->fetches ๐ถ with axios a data object in the JSON format
->displays ๐บ its fields in the middle of the screen
Here is the code ๐ if you wanna play with it, just download itโฌ๏ธ, and run it from its directory with 'npm start'๐
#react #axios #callBackend #get