Supercharge Your React App: Master CRUD Operations with Axios, Router & JSON Server

  Рет қаралды 62,711

Code With Yousaf

Code With Yousaf

Күн бұрын

In this video, we'll show you how to supercharge your React app with Axios, Router and JSON Server. We'll walk you through how to create, read, update, and delete data using Axios, Router and JSON Server!
By the end of this video, you'll be able to create, read, update, and delete data using Axios, Router, and JSON Server. We'll also show you how to use Axios to send data to a remote server! This is a great video for beginners who want to start building more complex applications with React.
TimeStamp:
0:00 Demo
01:23 Packages
02:17 Setup JSON-Server
02:51 Create All Components
03:42 React-Router-Dom
06:32 Fetch Records and Display
15:47 Add a new Records
22:59 Read a Record
25:58 Update Record
33:42 Delete a Record

Пікірлер: 69
@paschalynukwuani6930
@paschalynukwuani6930 Жыл бұрын
Thank you for this tutorial. You gave a clear explanation of CRUD operations in Rest API with AXIOS. Kudos!!
@asafv2707
@asafv2707 11 ай бұрын
thank you very much I was searching for this for so LONG! Works awsome!
@ZeeshanMRaje
@ZeeshanMRaje 5 ай бұрын
Learn it within 24 hours , thanks a lot chaudhari sahab ,. Respect from India
@Alcsie
@Alcsie 7 ай бұрын
Thank you for making this awesome video. This is a very good exam for React CRUD operations. I learned a lot of stuff from this exam.
@zTechZona
@zTechZona 15 күн бұрын
Thank you Yousaf 👍
@irabor18
@irabor18 11 ай бұрын
Great tutorial!
@anthonynarine5292
@anthonynarine5292 Жыл бұрын
awesome job. thank you
@viswapentitheprogrammer
@viswapentitheprogrammer 2 ай бұрын
It is great resource for understanding the React, thanks for making this vedio
@princebabariya-fh2dx
@princebabariya-fh2dx 9 ай бұрын
thank you brother for this video this video is realy very very helpfull for me so thank you so much.
@user-rt1xi7yw4i
@user-rt1xi7yw4i 4 ай бұрын
😍very well explained, you took all my burden off .MAY ALLAH BLESS YOU🥰
@broken_jail2506
@broken_jail2506 4 ай бұрын
Thank you very much for the video, you are really good at explaining. Though i really wished you provided the github repo. Like the starter template
@ihsanzull
@ihsanzull 11 ай бұрын
Thank you very much Sir. im not sure on minute @25:21, but I believe we need to initialize data in useState args to avoid never[ ] type in data. For your case, it should be useState({ name: "", email: "", phone: "", })
@programmingwithnit5308
@programmingwithnit5308 10 ай бұрын
Thank you so much.🎉🎉🎉
@EmployeeItdepartment
@EmployeeItdepartment Жыл бұрын
well explained👌
@anangyoga1381
@anangyoga1381 4 ай бұрын
thank you dude!
@Key-yf3ou
@Key-yf3ou 7 ай бұрын
Good job man
@MrCavid1991
@MrCavid1991 9 ай бұрын
big thanks to you
@mariyahadzhiyska7681
@mariyahadzhiyska7681 6 ай бұрын
Thank you, thank you, thank you, thank you
@fzkhan
@fzkhan 9 ай бұрын
nice keep it up.
@JahirulIslam-hj5xe
@JahirulIslam-hj5xe 2 ай бұрын
thanks bro
@ShubhamKumar-gy7oi
@ShubhamKumar-gy7oi Жыл бұрын
can't we fetch data on different page using ContextApi or redux toolkit and 1)then call the function and values and show it on either model or in another page , 2)preform data editing and then updating it like you did in edit option 3)last delete it in the above project i did tried but can't perform operation 2.
@codewithyousaf
@codewithyousaf Жыл бұрын
I have performed crud operations with React-Redux too try it: kzbin.info/www/bejne/eoDOhIhprsxnrLM
@sufyan_rasheed
@sufyan_rasheed 11 ай бұрын
Very helpful video sir thank you but Can u provide db.json file or other source cod.
@jhonearvintangonan277
@jhonearvintangonan277 8 ай бұрын
Hey bro is there a way to delete without refreshing the page?
@GaneshBhatt-jk6kc
@GaneshBhatt-jk6kc Жыл бұрын
if u r using location.reload what is the use of react then if page is refreshing
@subedaraarthi2330
@subedaraarthi2330 Ай бұрын
Thanku
@user-zu7vj6vg8e
@user-zu7vj6vg8e 3 ай бұрын
Why i am not able to get data through id whereas without using id i am getting the data....It show not found error
@Roozikhan565
@Roozikhan565 Жыл бұрын
@myytkn8526
@myytkn8526 6 ай бұрын
Hello, can you please make a video with a small React Store app and MongoDB where you save users and products into the mongo database with login and signup? That would be helpful.
@Dev-Phantom
@Dev-Phantom Жыл бұрын
cool
@130panuwatponsa7
@130panuwatponsa7 7 ай бұрын
😍
@tranphuocanhminh73
@tranphuocanhminh73 10 ай бұрын
Is there any other way to delete the user without having to reload the page? If you reload the page, it's not very ReactJS
@alen6937
@alen6937 9 ай бұрын
You can change the state on delete operation.
@akshintalasurendrakumar2715
@akshintalasurendrakumar2715 4 ай бұрын
Video content was good. From next time please share the code or github link
@isaacwekesa8784
@isaacwekesa8784 6 ай бұрын
thank you for the great guide. Could you be kind enough to share your code?
@Marinho2371
@Marinho2371 22 күн бұрын
Boa tarde, tenho em um campo da table o formato de data yyyy-mm-dd e não consigo mudar para dd-mm-yyyy. Com backend node js consigo mudar pelo banco de dados mysql, através da instrução SQL e resulta no formato dd-mm-yyy. Ex: 20/05/1996 . Com JSON server isso não acontece. Uso a função no map da tabela: item.datat.toLocaleDataString() . Sabe como resolver ?
@BabliKumari-cd2sz
@BabliKumari-cd2sz 4 ай бұрын
Kya ye sab code mil sakta hai sara
@bhimanapavankumar9749
@bhimanapavankumar9749 6 ай бұрын
Can u share ur package. json file
@uyty1204
@uyty1204 9 күн бұрын
hello Code With Yousaf and thanks you so much i want take your code so how i can take it. please
@sd-fz2ku
@sd-fz2ku 3 ай бұрын
For update id when I'm writing code { '/update/${id}'} something wrong here which is causing error to update data
@codewithyousaf
@codewithyousaf 3 ай бұрын
use backtick {`/update/${id}`} remember to have route for update like:
@sd-fz2ku
@sd-fz2ku 3 ай бұрын
Working
@sd-fz2ku
@sd-fz2ku 3 ай бұрын
While showing previous values in update boxes we use value={data.name} here I'm getting error can't read name property
@user-iw1pe9st4v
@user-iw1pe9st4v Жыл бұрын
Hello my dear friend, I need the source code for the project. Can you give me the link to the source code?
@codewithyousaf
@codewithyousaf Жыл бұрын
When I upload I will share the link with you
@codewithyousaf
@codewithyousaf Жыл бұрын
Source Code link: www.buymeacoffee.com/codewithyousaf/crud-operation-react-js-json-server-axios-router
@gnanakamireddy7124
@gnanakamireddy7124 10 ай бұрын
Did the code work? not working for me
@mohdkhaleeq7468
@mohdkhaleeq7468 6 ай бұрын
bro will you give github code for this project
@user-xl1eo3qv7b
@user-xl1eo3qv7b 9 ай бұрын
Please given a source code
@user-cd2dw4do9d
@user-cd2dw4do9d 2 ай бұрын
json-server is not working
@soulxreeperyt4798
@soulxreeperyt4798 10 ай бұрын
bro i want db.json data please provide it
@codewithyousaf
@codewithyousaf 10 ай бұрын
I don't have that data right now because I changes my computer all the files ..... have gone .....
@draconianyt5174
@draconianyt5174 4 ай бұрын
But when you deleted your records it reloaded the page its wrong because it’s single page
@BabliKumari-cd2sz
@BabliKumari-cd2sz 4 ай бұрын
Aap code kha se liye
@draconianyt5174
@draconianyt5174 4 ай бұрын
@@BabliKumari-cd2sz code nhi lye
@Vijay-iv8zt
@Vijay-iv8zt Ай бұрын
Bro ,can I get the source code ?
@sd-fz2ku
@sd-fz2ku 3 ай бұрын
Random id is getting added for me
@codewithyousaf
@codewithyousaf 3 ай бұрын
If you don't add id manually it will add automatically.
@sd-fz2ku
@sd-fz2ku 3 ай бұрын
@@codewithyousaf for you how it's getting added sequentially?
@ayaayman1598
@ayaayman1598 3 ай бұрын
I had the same problem but even when I turn the id to a number, it still generates a random string id. Then I have found that in another application, this problem didn't happen. The difference between them: the json-server version. So after I downgraded from "1.0.0-alpha.23" to "^0.17.4", the problem was solved.
@sd-fz2ku
@sd-fz2ku 3 ай бұрын
@@ayaayman1598 can u please write command here
@codewithyousaf
@codewithyousaf 3 ай бұрын
@@sd-fz2ku It was an older version I think the new version has changed.
@navaneethakrishnan3871
@navaneethakrishnan3871 3 ай бұрын
worst crud without any proper installation
@thetoxic2823
@thetoxic2823 10 ай бұрын
You need to improve your English skill sir ana way of teaching also
@codewithyousaf
@codewithyousaf 10 ай бұрын
👍👍
@vampirekabir
@vampirekabir Жыл бұрын
repo
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 421 М.
Khóa ly biệt
01:00
Đào Nguyễn Ánh - Hữu Hưng
Рет қаралды 20 МЛН
Неприятная Встреча На Мосту - Полярная звезда #shorts
00:59
Полярная звезда - Kuzey Yıldızı
Рет қаралды 7 МЛН
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️ #shorts
00:59
BATEK_OFFICIAL
Рет қаралды 7 МЛН
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 457 М.
React JS CRUD Application in Hindi | React JS Tutorial | React Hooks
32:53
This UI component library is mind-blowing
8:23
Beyond Fireship
Рет қаралды 600 М.
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Alex Hyett
Рет қаралды 194 М.
Top 7 Ways to 10x Your API Performance
6:05
ByteByteGo
Рет қаралды 311 М.
Turning bad React code into senior React code
13:10
Cosden Solutions
Рет қаралды 86 М.
Axios with React JS | POST | GET | PUT | DELETE requests to Rest API
29:48
Learn CRUD using React JS | CRUD Operation Crash Course
1:13:04
What About Coding
Рет қаралды 91 М.
Khóa ly biệt
01:00
Đào Nguyễn Ánh - Hữu Hưng
Рет қаралды 20 МЛН