Design A Data Table Component | Frontend system design interview question | Component design

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 พ.ย. 2024

ความคิดเห็น • 11

  • @gmuthu20
    @gmuthu20 2 ปีที่แล้ว +3

    This is great to know how to design a feature/components before jumping into the coding part..!
    It will be very helpful if you do video on how to convert this design into actual code.

  • @ДенисМалышок
    @ДенисМалышок 8 หลายเดือนก่อน +1

    Thank you for a video. Tomorrow i am going to fail my first system design interview :D So at least I know how it is going to be XD
    I would consider as one of the options to use divs for the table with role attribute. There is a design pattern in UX when table rows become "cards". It may work here. Divs will give much more flexibility in CSS, instead of tr/td
    Also regarding the performance. Right now we have everything in one state as an object. Which might be shared as properties in different levels of nestings of our table components. And if you going to change one of the value it will trigger a rerender in every state consumer component (correct me if I am wrong). Also if any of state properties is object (or an array), updating even 1 of the property of them will cause all of the consumers to rerender. I mean you do not want to rerender footer or header if you selection items changed. So I would consider here a usage of recoil js.

    • @ДенисМалышок
      @ДенисМалышок 8 หลายเดือนก่อน

      Also, i am curious, by using event delegation capturing thing, how would you determine which row has been clicked? By having special attributes in rows? Like id to something?

    • @madhusudhan4001
      @madhusudhan4001 หลายเดือนก่อน

      @@ДенисМалышок did you clear the interview?? you should have posted an update..

    • @ДенисМалышок
      @ДенисМалышок หลายเดือนก่อน

      @@madhusudhan4001 It was not a system design. It called "system design" by them for the reason I do not know. But they asked some basic questions like how would it place folders in my project...
      I think I did not pass the next phase of the interview which was the tech one. I do not remember what was wrong, it was a long time ago.

  • @glenchaku9536
    @glenchaku9536 10 หลายเดือนก่อน +1

    great video you really went in depth on props and types

  • @saikhankhas5476
    @saikhankhas5476 2 ปีที่แล้ว

    This is so useful
    We were just talking about it with design system Team.

  • @shortcodingwithme
    @shortcodingwithme 2 ปีที่แล้ว +1

    In the component architecture, you have 2 component inside Header. One is filtering but what is the other component?
    Please try to make a video on streaming like Netflix or youtube.
    Thank you for the videos.

    • @frontendjirachi5297
      @frontendjirachi5297  2 ปีที่แล้ว +1

      The other is preferences. It could be used to set the visible columns, page size etc.

    • @shortcodingwithme
      @shortcodingwithme 2 ปีที่แล้ว

      @@frontendjirachi5297 Thank you

  • @yuanlairuci2024
    @yuanlairuci2024 2 ปีที่แล้ว

    🎉