This is a simple POC to demonstrate the use of Axios in a Lightning web component. In this example, I will be using a fake API called JSONPlaceholder to fetch data using Axios library.
On clicking the button, you will see the response printed on the page.
Check the code below for this component:
https://github.com/iamsonal/lwc-axios
On clicking the button, you will see the response printed on the page.
Check the code below for this component:
https://github.com/iamsonal/lwc-axios