Building a Design Tool for React in React - Sanket Sahu aka @sanketsahu at

Поділитися
Вставка
  • Опубліковано 25 сер 2024
  • Get next edition's tickets info here: www.react-euro...
    Follow Sanket here / sanketsahu and builderx / builderx
    Get next edition's tickets info here: www.react-euro...

КОМЕНТАРІ • 2

  • @RaoVenu
    @RaoVenu 3 роки тому

    a) Regarding subscribing to all changes, they could have used a library like reselect to ensure that the components only receive the changes that they are interested in. The speaker brushed through that so I am not sure if they considered that
    b) In fact they could have used react hooks (which has useState and useReducer) and may realize that their need for third party state management is considerably less than they imagined.
    c) A few notes: At my job we have a monolith codebase where this EventEmitter pattern described in 16:04 is baked in. Absolute nightmare to work with and nobody wants to touch that code.

    • @sanketsahu
      @sanketsahu 3 роки тому

      a) Even with the use of selectors, all the mounted selectors are hit. I would recommend you to watch the talk on Recoil which works on similar philosophies.
      b) Hooks / local state management is a different topic and outside the scope of this talk.