Wadad Parker
TTCTheo's Typesafe Cult
•Created by Wadad Parker on 12/29/2024 in #questions
Data Fetching with React 19
So React 19 is all about coming up with new patterns of Data fetching. I was figuring out how to do this in a hobby project.
Below is a code, simply takes in a text and generates a QR code. The qr code is just an example for async await action.
When I use the "use" api, it gives me an error. Now idk if am doing anything wrong. But what exactly is the new way to fetch api calls or async functions in React 19 just like it's done in the above example? And yes, am aware of React Query, but I just want to learn how to do this in React without React Query.
Would appreciate your help, thank you
39 replies