Can I use third party library like Axios in Visualforce lightning components?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
You can make an HTTP request directly from the lightning component or by using any library. But sometimes you will may to use the Apex for calling third-party web APIs.
By default, you can’t make calls to third-party APIs from client-side code. Add a remote site as a CSP Trusted Site to allow client-side component code to load assets from and make API requests to that site’s domain.
Link to the documentation - enter link description here