Luísa Ribeiro Bezerraluisarbezerra.hashnode.net·Nov 24, 2020Axios vs. Fetch: which should I use?When we enter the world of computing, there are so many packages, options and paths to follow that it is normal to feel a little lost. For example, when we are making HTTP requests, which way should we go? In this post, I will cover the Axios libra...Edidiong Asikpo (Didi) and 13 others are discussing this14 people are discussing thisDiscuss·181 likes·4.2K readsaxios
Ilango Rajagopalilango.hashnode.net·Aug 25, 2021FeaturedSupercharging data fetching in React with SWRWhat is SWR? Typically, when we call a REST API, we use fetch or a third-party library like axios, or, god forbid, $.ajax and XHR. The browser then makes an HTTP call and accepts a response. While the call is being made, the user waits, usually stari...Tapas Adhikary and 3 others are discussing this4 people are discussing thisDiscuss·105 likes·587 readsReactNice to see people moving towards SWR. 3
Rahul Banerjeerealpythonproject.hashnode.net·Jun 27, 2021A cheat sheet for JavaScript's fetch APIOriginally Posted on realpythonproject.com Connect with me on LinkedIn, Twitter Check out the cheatsheet for Axios The fetch API in JavaScript is used to make requests. It can also be used to consume APIs. Let's take a look at some of the most commo...Chris Bongers and 1 other are discussing this2 people are discussing thisDiscuss·94 likes·1.8K readsJavaScript
TopGunankushsrj.hashnode.net·Apr 19, 2023React Native API Integration: Fetch() vs Axios for GET and POST RequestsFetch Method: Here's an example of how to use fetch() for both GET and POST requests in React Native: GET Request: javascriptCopy codefetch('https://example.com/api/data') .then((response) => response.json()) .then((data) => { console.log(dat...Discuss·38 readsReact Native
Ayush Patelayushpatel.hashnode.net·Apr 14, 2023From Callbacks to Promises and Async/Await: Asynchronous JavaScript with FetchIntroduction to asynchronous programming in JavaScript JavaScript is a synchronous, single-threaded language meaning it executes all of the instructions executed one by one in a sequence but it can still handle asynchronous operations with the help o...Discuss·1 likeWeMakeDevs
Ojochogwu Dicksonod.hashnode.net·Apr 4, 2023Asynchronous Promises in JavaScript.Asynchronous programming gives your program the leverage to start a continuous, long-running task and still run other shorter tasks/events while that task runs. With this method, your program would not need to wait for longer tasks to be completed be...DiscussJavaScript
Ayaan Surkhiayaansurkhi.hashnode.net·Apr 3, 2023Dealing with CORS and authenticationThe frustration with CORS is common to all developers, especially when dealing with user authentication, but it doesn't have to be that way, with there being several ways of fixing these issues! Note that in this article, client & server and fronten...Discuss·48 readsCORS
Andres Beltranandres039.hashnode.net·Mar 20, 2023Fetch con TypeScriptThis is a translation of the original post using fetch with TypeScript by Kent C. Dodds. Cuando estaba migrando código a TypeScript, me encontré con algunos pequeños obstáculos que quisiera compartir contigo. El caso de uso: En los talleres de EpicR...Discuss·52 readsTypeScript
Eric Hartfordehartford.hashnode.net·Mar 20, 2023Playing with ChatGPT APII thought I would try out ChatGPT's new API, so I decided to write a command line interface. My code is located here: I wanted it to be conversational, so it will remember your conversation history as you type. Similar to chatgpt-wrapper. https://gi...Discuss·30 readschatgpt
Anjanesh LekshminarayananforJavaScriptanjanesh-1656658932330.hashnode.net·Mar 1, 2023Client-side AJAX using JSONVery often, many developers, including myself in the past, normally all along we were using jQuery's $.ajax and sending in JSON with dataType: 'json' without really sending the content-type as a JSON string which is supposed to be application/json - ...Discuss·26 readsAjax
Fajar Chaniagorapiter.hashnode.net·Feb 1, 2023YUK, Pahami Konsep Asynchronous pada JavaScriptsebelum kita masuk ke pembahasan, yuk kita cari tahu dulu perbedaan syncronus dengan asyncronus Synchronous adalah metode yang menunggu tugas selesai sebelum melanjutkan ke tugas berikutnya. Dalam hal ini, tugas-tugas harus dijalankan dalam urutan ya...Discuss·70 readsJavaScript
Anjanesh LekshminarayananforAlpine JSanjanesh-1661098348927.hashnode.net·Jan 23, 2023Using AlpineJS Template to load data from fetchThis is a follow-up to this post of mine where I show how to retrieve data from a public google spreadsheet via their JSON output and show it in the webpage by setting the HTML to a DOM element via innerHTML. I think doing something like document.get...Discuss·122 readsfetch
Evelynmexcglobalbtc.hashnode.net·Jan 14, 2023What is the Usage of Fetch.ai?Fetch.ai or FET is an autonomous agent technology. Create an infrastructure for developing modern decentralized peer-to-peer (P2P) applications using AI technology. Important information about the token can be found on the MEXC Digital Asset introduc...Discuss·1 likemexc global