React tutorial in Hindi #55 Pre-filled form Data

  Рет қаралды 31,129

Code Step By Step

Code Step By Step

Күн бұрын

In this react js tutorial for beginners series we learn how to make pre-filled data from state and how to use delete API with interview questions in react js. This video is made by anil Sidhu in the Hindi Language.
git link for this video
github.com/ani...
Playlist for complete React series in Hindi
link • React tutorial for beg...
Pre-filled Form
Make a simple form.
Add Update Button in list
Set values in list
Populate values in form
Interview Question
Join on Insta @php.step.by.step

Пікірлер: 41
@rajatshrivastava879
@rajatshrivastava879 3 жыл бұрын
These concepts are so important yet nobody explains them clearly. Thanks a lot for making these API videos. Love your content.! Thanks.
@codestepbystep
@codestepbystep 3 жыл бұрын
Welcome
@tausifshaikh7544
@tausifshaikh7544 3 жыл бұрын
We can create object with name,email, mobile and then set or update those fileds in useState.
@Datta3
@Datta3 4 ай бұрын
1)logic to get data based on id is not complete , .....(i think) --in my case i have object of user in which ids(7,8) and object index is(0,1) --eg, i click on 7 id the logic is id-1=6 ,i get undefine because we consider id as index of array and here 7 index not present, --time where this problem is 7:05 in video. ---here who i am solve this problem -- var data=userData.find(e=> e.id==id) ---sorry if i am wrong ---Thank you sir
@dayachhimpa1343
@dayachhimpa1343 2 жыл бұрын
Great sir it's so helpful
@sachindeveloperko8424
@sachindeveloperko8424 3 жыл бұрын
Thank you for making tutorial ❤️ #reactJS
@codestepbystep
@codestepbystep 3 жыл бұрын
My pleasure!!
@Lucky-xq8qy
@Lucky-xq8qy 3 ай бұрын
Yes we can use the object in single state
@MrnMrsPet
@MrnMrsPet Ай бұрын
Sir, I did not understand one thing, can two functions be created with the same name? You have created two functions named selectUser
@anandrana7340
@anandrana7340 2 жыл бұрын
one doubt it gives undefined if our users array have 7 data values and we delete 6th value then our array length becomes 6 and when we click on id 7 then it gives undefined because we searching the id which have more then length of array , so how to handle this type of error
@zainabideen8144
@zainabideen8144 2 жыл бұрын
what if we want to make the update page seperately?
@mangeshbangale9253
@mangeshbangale9253 3 жыл бұрын
Instead of creating 3 states we can create array and pass that array to useState
@amitmishra3218
@amitmishra3218 11 ай бұрын
thank you bhai
@anime_lover_73_
@anime_lover_73_ 2 ай бұрын
sir in my API id randomly generate ho rahi h ex: 1250 ,2234 like this ..kya kru jisse 1,2,3 type me generate ho please help ...qki iski wjah se users se id select nhi ho pa rhi h undefine de raha please help me
@UdayPawarUdi
@UdayPawarUdi 3 жыл бұрын
Pls make tutorials on javascript.
@Armankhan-jy4eb
@Armankhan-jy4eb 3 жыл бұрын
nahi pata... ap btao kese single state m sara kuch ayega??
@anitboghara521
@anitboghara521 2 жыл бұрын
let user[id] me undefine a raha he data dikhay nahi de raha
@sachindeveloperko8424
@sachindeveloperko8424 3 жыл бұрын
Bhai apke tutorial to ache ha par view nahi aye ha please SEO koro apne Video ka 👍
@codestepbystep
@codestepbystep 3 жыл бұрын
ha bhai , try to krta hu :)
@anitboghara521
@anitboghara521 2 жыл бұрын
sir me jab form me data get karta hu tab id undefine a rahi he update button pr click karte he tab plz uska soluction batao
@vaishalityagi3236
@vaishalityagi3236 3 жыл бұрын
hi ,i am stuck in data[id].name.not able to get the value if you can help
@Namaste-Sahu
@Namaste-Sahu Жыл бұрын
same issue
@akashbhoi5302
@akashbhoi5302 2 жыл бұрын
i think we can use here form.
@nop9974
@nop9974 3 жыл бұрын
how to set contact from 7 (WordPress plugins) post API in react ? i am finding this solution since 1 month and still is not slow .. please make a video about this .
@mayaramyadav
@mayaramyadav 3 жыл бұрын
Han kar sakte h
@wolfOmega1994
@wolfOmega1994 3 жыл бұрын
i have been experimenting with this and found that if i delete a id 4 in a series of id 1,2,3,4,5, now the remaining ids are 1235, when i try pre filling like you did the pre filling fails when clicked on id 5, can you please check on this???
@Hamzaahahaa
@Hamzaahahaa 2 жыл бұрын
did you find any solution to that?
@jyotsanasingh5927
@jyotsanasingh5927 Жыл бұрын
insted of passing id try to pass the whole data & then u can easily populate the values irrespective of the ids@@Hamzaahahaa
@arnabbhusan7574
@arnabbhusan7574 2 жыл бұрын
how to create the json file that you are using and how to run on localhost?
@samgosavi7
@samgosavi7 2 жыл бұрын
watch his json server video
@asishnayak1544
@asishnayak1544 2 жыл бұрын
console.warn(Data[id-1]), this will not work if i have the user of id 1,2,10..this will work if i have the id serially(1,2,3,4,5...)
@Hamzaahahaa
@Hamzaahahaa 2 жыл бұрын
how to handle it facing the same issue.
@amomentbefore...8990
@amomentbefore...8990 2 жыл бұрын
is video ki jo api he us me id ke ander object he, isiliye video me users.[id] chalega, tumhare me ek hi object me sab hoga then nahi chalega, so try this,,,, let item= users.filter((z) => z.id === id) and check console.log(item)
@amomentbefore...8990
@amomentbefore...8990 2 жыл бұрын
@@Hamzaahahaa check my answer
@user-zb7qi6hf9c
@user-zb7qi6hf9c 2 жыл бұрын
Working fine until i add users with id console.warn(users[id]) why is it showing undefined anybody have solution ?
@mdabidkalam3527
@mdabidkalam3527 Жыл бұрын
const selectUser = id => { let index = data.filter((item) => item.id === id ? item : null); console.log("🚀 ~ index-->", index); setName(index[0].name); setEmail(index[0].email); setPhone(index[0].phone); };
@sahilbhatti9582
@sahilbhatti9582 2 жыл бұрын
sir yeh api kese bnai???
@samgosavi7
@samgosavi7 2 жыл бұрын
watch his json server video and then postman video....kzbin.info/www/bejne/q2jHgXqrfKdjgcU
@avinash-dhumal
@avinash-dhumal 3 жыл бұрын
Your channel name is PHP step by step but you won't upload a single video on PHP 😉
React tutorial in Hindi #56 Update Data with API | Put Method
10:42
Code Step By Step
Рет қаралды 41 М.
React User Login and Authentication with Axios
31:37
Dave Gray
Рет қаралды 563 М.
ЭТО НАСТОЯЩАЯ МАГИЯ😬😬😬
00:19
Chapitosiki
Рет қаралды 3,1 МЛН
An Unknown Ending💪
00:49
ISSEI / いっせい
Рет қаралды 58 МЛН
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17
React tutorial in Hindi #54 Delete Method in React API
9:48
Code Step By Step
Рет қаралды 39 М.
React tutorial in Hindi #19 Basic Form validation
17:39
Code Step By Step
Рет қаралды 124 М.
Airtable Automations To Update Records
10:58
Dan Leeman
Рет қаралды 13 М.
Fetching Data in React - Complete Tutorial
29:10
Cosden Solutions
Рет қаралды 126 М.
React tutorial in Hindi  #53 POST Method in Rest API
18:21
Code Step By Step
Рет қаралды 106 М.
3 Important SEO Hacks for React Developers
10:37
Mehul - Codedamn
Рет қаралды 26 М.
React tutorial in Hindi #57 Previous state in functional component
12:29
Code Step By Step
Рет қаралды 22 М.
10 React Antipatterns to Avoid - Code This, Not That!
8:55
Fireship
Рет қаралды 750 М.
ЭТО НАСТОЯЩАЯ МАГИЯ😬😬😬
00:19
Chapitosiki
Рет қаралды 3,1 МЛН