Call API in React Js | How to send data from frontend to backend react

preview_player
Показать описание
In this tutorial, I show you how to call API in react js. If you want to send or receive some data from the backend and you don't know how to send data from frontend to backend react, this quick video can help you how to achieve this.

Hope you enjoy it.
Consider subscribing...
Have a great day.
Рекомендации по теме
Комментарии
Автор

Thank you, excellent guide by API with clear explanation for every step

lubuntumleto
Автор

Bro your good mentor. Explanation was so good. Thank you bro✊✊✊

fazliddinfayziev-qgvg
Автор

hey man great tutorial! i'm trying to send a word from search bar to backend into a function... which fetches data from API and updates it into the backend server..how can i do something like that? 1. search 2. use the search to fetch data from API 3. update the backend server with new data 4. display new data to front end

mattfly
Автор

how can I make my local data in a localhost data please?

belahouelbatoul
Автор

When you setAuthors in line 35 after creating a author, why do you use an => instead of just setAuthors([…prev, resultInJson])

mikep
Автор

Bro Masoud you are a star like you explained this like you are explaining it to a baby.

xredpill
Автор

Whem posting data to server I'm receiving "has been blocked by CORS policy" error, how can I solve this ? thanks so much, very good tutorial

ark
Автор

سلام ،من یه با react یه برنامه نوشتم الان میخوام با axios وصل کنم به backend ولی من چیزی از backend نمیدونم فقط میخوام بزارم روی رزومه ام که بدونن کار با axios رو بلدم ، میخوام یه سری دیتا مثل Id و taskName رو از backend بگیرم باید چی کار کنم ؟

mrymzrzr
Автор

Hi, tanks for the video.. i have a problem in my code.
Uncaught (in promise) SyntaxError: Unexpected end of input (at Main.jsx:17:1)
That line contains:
const resultJson = await result.json()

juanantoniozorrilla