Create a sample JSS app with react template. You can refer https://sudhirkumarblogs155782548.wordpress.com/2021/04/26/how-to-create-an-app-using-sitecore-jss-and-run-in-disconnected-connected-integrated-mode/ to create it. Now let’s get started.
Install Axios Library. Run below command npm install axios
Create a component definition in Sitecore using the JSS CLI. Run below command