Reactjs 16 tutorial #22 call post api example

preview_player
Показать описание
In this Reactjs 16 tutorial we learn how to fetch post api or call post apin with example anil sidhu

we need a dummy api for post request

{"name":"topname","salary":"123","age":"23"}

test this url with postman

make a simple form

write code for post api

alert message after save api

check is data posted in api or not

form submit details

Checkout and subscribe our new channel for technical news
Рекомендации по теме
Комментарии
Автор

Checkout and subscribe our new channel for technical news

codestepbystep
Автор

Thank for such a nice tutorial, provide complete tutorial for react native

soniclickadbox
Автор

Excellent, but i have error in url, is necessary input? Example, name:'Elisa', salary:'100' directly, thanks

ericaruiz
Автор

when we do post request, result should be displayed on frontend without refreshing . Please tell me how to do it .

MS-nhzj
Автор

i get cors policy issue when executing this code

abhisreedeepak
Автор

Sir this utl not opening api.. Url show error

muhammad_hasnain_