How to Build an Infinite Nested Comments System in React JS | System Design + Code

Поделиться
HTML-код
  • Опубликовано: 3 янв 2025

Комментарии • 56

  • @xplodivity
    @xplodivity  Год назад +2

    Build 16 Medium/Hard JavaScript projects for live coding Interview rounds
    Get it now- xplodivity.graphy.com/courses/16-js-projects-65883553e4b08ebe75f39885
    Full Video Preview of each project from the course- ruclips.net/video/coZucJEvsSk/видео.html
    What you'll get:
    - Lifetime access
    - Full video explanations of building each project from scratch
    - 10+ hours of premium content
    - Step-by-step explanations and code walkthroughs
    - No bullshit, No time waste
    - This project list Should get you ready for any JavaScript live coding interview round.
    - Extremely cheap (You'll be surprised)
    - Practical tips and strategies for mastering JavaScript
    - Confidence in handling technical interviews
    - Enhanced JavaScript proficiency
    Content list:
    1. File Explorer (similar to vs-code)
    2. Infinitely Nested comments
    3. Advanced Custom Toast notification from scratch
    4. Drag & Drop, Swap, Add and delete elements using JavaScript
    5. Custom Calendar/Date-picker
    6. Multi-Select dropdown with support to add & remove elements
    7. Build a Memory game with all rules integrated
    8. Build an analog clock with smooth animation
    9. Dynamic Progress bar with custom input support
    10. Build a Star rating system with dynamic hover effects
    11. Build a tic tac toe game with best practices
    12. Advanced To-Do List with Local Storage support
    13. Accordion with smooth transition effects
    14. Countdown timer & days remaining timer
    15. Create a custom modal
    16. Build an optimised Chessboard

  • @isumtk
    @isumtk Год назад +5

    I was asked this same question in an interview for FE role. Thanks for solving this project.

  • @AMAN-un7ji
    @AMAN-un7ji Год назад +5

    I love this kind of projects, small but extremely useful. Besides, you understand because a specific topic is emphasized

  • @Yuuffyy
    @Yuuffyy Год назад +1

    Thanks for creating real world examples. Please keep these going!

  • @oscaranillo7131
    @oscaranillo7131 Год назад +1

    This is simple wonderful! Exactly what I was needing for a project!

  • @RavindraSingh-lp9pl
    @RavindraSingh-lp9pl 8 месяцев назад

    Superb video man...very knowleadeable. Please make more such machine coding React series.

  • @Akephalos204
    @Akephalos204 Год назад

    Came from Reddit, thanks this is great

  • @pritamhippargekar1840
    @pritamhippargekar1840 Год назад +1

    Verry useful and real time use case sir. Make one more vedio on roled based access menu.

    • @xplodivity
      @xplodivity  Год назад +1

      Thank you. And yes, i will look into it!

    • @alirazzaq1541
      @alirazzaq1541 9 месяцев назад

      @@xplodivity .

  • @utibeokodi4997
    @utibeokodi4997 7 месяцев назад

    Great article, an improvement would be breaking down the project into more components to adhere to SRP

  • @merajali938
    @merajali938 10 месяцев назад +2

    Video is good but to shorten the video you've added copy pasted code, pls create another video for nested comments and write code online by communicating with us on the video. Your content and type of videos are challenging and helps us learn new concepts as compared to other youtube channels. Thank you.

  • @HARDY4006
    @HARDY4006 Год назад

    Amazing content yet again👍👍👌👌

  • @akir2v568
    @akir2v568 8 месяцев назад

    thank you GOAT

  • @chahatbhatia90
    @chahatbhatia90 Год назад +1

    I think it can be improved more by adding Context API instead of sending the callbacks using prop drlling.

  • @Ravi_Goyal
    @Ravi_Goyal Год назад +2

    In insert node if id is found in first object itself then why are you iterating over rest of the objects also?
    const insertNode=(comments,id,item)=>{
    if(comments.id===id){
    comments.items.push(item)
    return true
    }
    else{
    for (let obj of comments.items){
    if(insertNode(obj,id,item)){
    break;
    }
    }
    }
    }
    does this make sense?

    • @macmacmac740
      @macmacmac740 11 месяцев назад

      I had the same question. The 'map' which is written will still continue to run even after the insertion is done successfully.

  • @PwnKilla
    @PwnKilla Месяц назад

    i'm not quite understanding how that map you are doing on the comments, is grabbing every id, when they are nested in your hard coded example

    • @PwnKilla
      @PwnKilla Месяц назад

      Found the answer, the Comment component, is calling itself, and we are passing all the props it's need to map through the comments again 👍

  • @IAmOxidised7525
    @IAmOxidised7525 6 месяцев назад

    using immer along with state could help with complete UI re-renders ?

  • @rudra4780
    @rudra4780 10 месяцев назад

    How the f* do you build all this in 20 min while explaining this as well!!
    Am I the only one tripping over this?

  • @satyamgupta1785
    @satyamgupta1785 Год назад

    I don't want an infinite nested reply , so what do I do?

  • @akrammohammed3581
    @akrammohammed3581 11 месяцев назад

    Thanks

  • @sumitbhardwaz
    @sumitbhardwaz Год назад

    one question. i want it to implement into my project? i want to comments to stay permanent ? Should i use database for fetching and storing comments there?
    what is the viable and appropriate way to do this?

    • @hmehta051
      @hmehta051 Год назад

      Use local storage or redux persist

  • @lemon_maho
    @lemon_maho Год назад

    I have a question: how would u make this with nested ul and li s so that we get different bullet point shapes for nested ones, I'm kinda struggling to do that, any ideas?

    • @ican-in2gz
      @ican-in2gz Год назад

      did you solve the problem that you have faced

    • @lemon_maho
      @lemon_maho Год назад

      @@ican-in2gz yes, I was doing something wrong with my code

  • @bengternman6
    @bengternman6 Год назад

    Hey I just came from r/nextjs you are creating good content.
    Could you make video how to create hook or api for uploading image or images to cloudinary and deleting them.
    so for example user can add image to profile, remove it, add new one and so on.

  • @christa_3131
    @christa_3131 9 месяцев назад

    how do you run it?

  • @SajjadHematiNourani
    @SajjadHematiNourani Год назад

    please make the backend as well.

  • @HBCGAMING
    @HBCGAMING Месяц назад

    I am watching this if I can,t SOLVED 😢 i gone try for my self I just getting some hints from you in 2;52 forever

  • @PRANAVMAPPOLI
    @PRANAVMAPPOLI 9 месяцев назад

    Nice

  • @venkatasuryakiranvudutha3360
    @venkatasuryakiranvudutha3360 Год назад

    How to access updated document instead of paying again?

    • @xplodivity
      @xplodivity  Год назад +1

      You will be mailed the updated document. During purchase, you will be asked for your email, and any updates to the book will be sent to that email itself.

    • @thedungnguyen4440
      @thedungnguyen4440 Год назад

      @@xplodivity hhh

    • @maximus_precladius
      @maximus_precladius 10 месяцев назад

      @@xplodivity great

    • @maximus_precladius
      @maximus_precladius 10 месяцев назад

      great

    • @hieune6125
      @hieune6125 Месяц назад

      @@xplodivity .

  • @ftheworld2885
    @ftheworld2885 Год назад

    if possible then please also integrate rich text editor to the comment and reply box

  • @rayyanabdulwajid7681
    @rayyanabdulwajid7681 8 месяцев назад

    Don't you think this recursive approach is very inefficient compared to a simple approach. Refer to Nested comments section article by geeks for geeks as they have not used recursion. It is simpler to understand and involves lesser computation as well.

    • @PwnKilla
      @PwnKilla Месяц назад

      but that example shown by geeks for geeks, doesn't have code to load nested data from a DB, or harcoded data, it only has code to create comments and replies, not code to handle loading per-existing data.

  • @srisaisandeepsandeep1208
    @srisaisandeepsandeep1208 7 месяцев назад

    good

  • @ashwinikumar13
    @ashwinikumar13 11 месяцев назад

    asa