use axios in npm code example
Example 1: how to install axios in react
$ npm install axios
Example 2: axios library
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
$ npm install axios
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>