Building a Nested Comments System with React

  Рет қаралды 12,717

Shadee Merhi

Shadee Merhi

Күн бұрын

Пікірлер: 47
@nihilidron
@nihilidron Жыл бұрын
I was building nested comments at my work today and almost fried my brain.
@yasirsheikh3680
@yasirsheikh3680 Жыл бұрын
I struggle with solving problems like these, it's actually why I'm not able to create projects without watching a tutorial first. However, watching your Reddit video and seeing how you approach problems really helped me a lot. I'm super pumped right now because I did this whole nested comments thing on my own before seeing your solution. Thank you and please do more of these raw-type videos
@shadmerhi
@shadmerhi Жыл бұрын
Wow, I'm very honoured to hear that I've helped you learn how to approach and independently solve problems! I also appreciate your feedback and will definitely create more raw-type videos 😁
@thedyslexicwebdev1654
@thedyslexicwebdev1654 11 ай бұрын
Well where do you think all people get their info from, you either have a teacher or you have teachers on youtube lol , and nested comments is complicated for beginners, now imagine you have a MERN application with a different structure
@hacker57
@hacker57 19 күн бұрын
​@@shadmerhi🎉
@hacker57
@hacker57 19 күн бұрын
🎉
@bishwajeetpandey1570
@bishwajeetpandey1570 Жыл бұрын
Yor explanation was grt , This problem is really tricky now i m trying to solving this problem using vanilla js 😖
@nitinworldwide
@nitinworldwide Жыл бұрын
provide source code
@theshubhagrwl
@theshubhagrwl Жыл бұрын
This is actually the best tutorial that I have watched becuase this was real, showing the struggle and confusions that happen while doing something new. I also watched another tutorial on the same topic and it was like an AI generated voice with pasting snippets (like fireship). I like watching the thought process not just code. GREAT WORK!!!
@wisdomelue
@wisdomelue Жыл бұрын
can we get the source code?
@andreaswu7973
@andreaswu7973 Жыл бұрын
great project Shadee. please make the up/downvote functionality and also the backend with supabase/firebase
@meowmesh
@meowmesh Жыл бұрын
Bro that's easy if you try it 🙂
@Jonasgranlof
@Jonasgranlof Жыл бұрын
Great work! Would love the follow up part with the backend for sure! How would you go about the collapsing features of cancel, for it to collapse to the parent comment, e.g not leave other comments showing when collapsed to first comment?
@shadmerhi
@shadmerhi Жыл бұрын
Thank you for watching! Glad to hear you're interested in the backend portion - I will try to make that video shortly
@rounakagarwal1294
@rounakagarwal1294 7 ай бұрын
Hey buddy, really appreciate solving this live. This certainly helps on how to approach a problem in steps. However, the solution to update the replies of each comment, by making a separate state on each recurse, doesn't seem very right. I am not sure, can you please provide a bit more explanation for this logic. It sure displays each reply on the UI but is it actually updating the original (main) comments state and persisting it?
@michaelscofield2469
@michaelscofield2469 Жыл бұрын
Please make a new projects, next13 typescript, redux…, you are good teacher
@shadmerhi
@shadmerhi Жыл бұрын
New projects coming soon ❤️
@michaelscofield2469
@michaelscofield2469 Жыл бұрын
@@shadmerhi do you know about testing? react testing lib, jest, cypress ?
@shadmerhi
@shadmerhi Жыл бұрын
@@michaelscofield2469 Yes, I could make a video about testing, that's a great idea. Thank you
@michaelscofield2469
@michaelscofield2469 Жыл бұрын
@@shadmerhi please use on a project, you know how to teach
@TomMeadowsFox
@TomMeadowsFox Жыл бұрын
exactly what im looking for. its such an essential component of reddit!!!! any reason you didnt use chakraUI for this? what are the odds you could make a continuing of the reddit clone with this feature?
@cheezsan5659
@cheezsan5659 Жыл бұрын
I have a problem here my previously replied comments are getting added to the new comment instead of the existing comment
@ftheworld2885
@ftheworld2885 Жыл бұрын
if possible then please integrate rich text editor to the comment box and reply box
@swapnilramteke3060
@swapnilramteke3060 10 ай бұрын
sir, we miss some functionality like edit and delete can you make video on this
@lifeisbeautifu1
@lifeisbeautifu1 Жыл бұрын
Very interesting. Please make the second part for backend. ❤
@shadmerhi
@shadmerhi Жыл бұрын
Good to know you're interested!
@bishwajeetpandey1570
@bishwajeetpandey1570 Жыл бұрын
@@shadmerhi yes i am also waiting
@thunderwave7810
@thunderwave7810 8 ай бұрын
@@bishwajeetpandey1570 me too
@thunderwave7810
@thunderwave7810 8 ай бұрын
testing recusion in youtube comments
@thunderwave7810
@thunderwave7810 8 ай бұрын
@@bishwajeetpandey1570 testing recursion
@sadique_x_
@sadique_x_ 10 ай бұрын
watched this about 10 times, but i'm glad i grasped it!
@rikeshsherpa-z5u
@rikeshsherpa-z5u 10 ай бұрын
nesting works perfectly fine but when adding a new comment we get an error , it replaces current comment with all its reply begin shifted to newly added comemnt
@henryteng5191
@henryteng5191 8 ай бұрын
Same issue! Did you find a fix?
@samuelumoh6646
@samuelumoh6646 10 ай бұрын
You're the man. Exactly what I needed.
@younesouterbah
@younesouterbah 8 ай бұрын
super helpful thank u so much man
@bellyndayikeza4799
@bellyndayikeza4799 Жыл бұрын
thank very much this really helped me a lot
@nitinworldwide
@nitinworldwide Жыл бұрын
naming gets me more confusion
@tonyvito5062
@tonyvito5062 11 ай бұрын
I guess if you named your variables correctly that would make much sense instead of comments you should have named it to replies which means each comment has replies and each reply has replies and so on
@GhulamQadir-lb6hu
@GhulamQadir-lb6hu 7 ай бұрын
testing multilevel comment on youtube
@GhulamQadir-lb6hu
@GhulamQadir-lb6hu 7 ай бұрын
testing multilevel comment on youtube
@kennedyfreitas7548
@kennedyfreitas7548 Жыл бұрын
Shadee coming in clutch again
@innocentoyebode7548
@innocentoyebode7548 Жыл бұрын
Hi Shad, This is really great. Thanks for helping out.
@shadmerhi
@shadmerhi Жыл бұрын
Glad it was helpful!
@yourdailyanimalfact
@yourdailyanimalfact Жыл бұрын
did you ever make a backend video?
@shadmerhi
@shadmerhi Жыл бұрын
I have not
@yourdailyanimalfact
@yourdailyanimalfact Жыл бұрын
@@shadmerhi it would be so cool if u knew how to integrate this with something like supabase
@shadmerhi
@shadmerhi Жыл бұрын
@@yourdailyanimalfact That would be cool! I'll definitely consider it 😁
Build a Search Bar with Next.js and Prisma (Search API endpoint)
40:22
The Joker wanted to stand at the front, but unexpectedly was beaten up by Officer Rabbit
00:12
Win This Dodgeball Game or DIE…
00:36
Alan Chikin Chow
Рет қаралды 38 МЛН
How To Get Married:   #short
00:22
Jin and Hattie
Рет қаралды 23 МЛН
JavaScript Visualized - Closures
11:34
Lydia Hallie
Рет қаралды 42 М.
Can You Make YouTube From Scratch Using Only Bash?
17:51
I used to hate QR codes. But they're actually genius
35:13
Veritasium
Рет қаралды 2,7 МЛН
Node.js is a serious thing now… (2023)
8:18
Code With Ryan
Рет қаралды 650 М.
This React UI Library is GAME CHANGER!
18:13
developedbyed
Рет қаралды 529 М.
The Story of React Query
8:55
uidotdev
Рет қаралды 106 М.
React Building Comments Application
55:57
Monsterlessons Academy
Рет қаралды 71 М.
The Advanced TailwindCSS Crash Course
37:39
Tom Is Loading
Рет қаралды 15 М.