Pete Hunt: React - Rethinking Best Practices (updated) - JSConf.Asia 2013

Поділитися
Вставка
  • Опубліковано 25 сер 2024

КОМЕНТАРІ • 14

  • @jsconf_
    @jsconf_  10 років тому +20

    Pete Hunt was back with his latest version of "Rethinking Best Practices" at JSConf.Asia announcing the React Chrome Developer Tools released today at facebook.github.io/react/blog/2014/01/02/react-chrome-developer-tools.html

  • @carebeyan
    @carebeyan 9 років тому +1

    I couldn't agree more.

  • @bingohuang3837
    @bingohuang3837 8 років тому

    Nice talk, benefit a lot

  • @happypeter1983
    @happypeter1983 8 років тому

    This is super!

  • @ftorre104
    @ftorre104 9 років тому

    23:32 -- on the virtual DOM performance, does React rebuild the whole DOM virtually and diff the whole DOM? Or does it scope to the particular component being rendered?

    • @Daniel15au
      @Daniel15au 9 років тому

      It's scoped to the component being updated and all its children. You can use the pure render mixin (facebook.github.io/react/docs/pure-render-mixin.html) or manually override shouldComponentUpdate (facebook.github.io/react/docs/component-specs.html#updating-shouldcomponentupdate) to improve performance by making it only call render() when the component has actually changed (in which case it'll only diff the components whose shouldComponentUpdate implementation returns true for that particular change)

  • @bichitomax
    @bichitomax 10 років тому

    Can i put this video on my channel and add some subtitles?

    • @MalteUbl
      @MalteUbl 10 років тому

      Sure, just send us the sub titles.

  • @arthomas73
    @arthomas73 6 років тому

    @6:25 he states "a lot of times you have to pass along the row color" that is not true of modern templating languages. angular 2+ could use an ngClass to evaluate the index to determine the class or color.

  • @cablegunmaster
    @cablegunmaster 8 років тому

    Whats up with the tank and the divers inside :o kinda weird. but thats Asia.

    • @ilovecomputers
      @ilovecomputers 7 років тому

      I'm curious, are those divers there to perform or actually maintain the tank and feed the fish?

  • @DerekBraid
    @DerekBraid 10 років тому

    Facebooks' React.js is intriguing contrast to Angular. Good viewing for javascript hackers and DOM manipulators.

  • @johannes-vollmer
    @johannes-vollmer 7 років тому +1

    What the heck happened so that rebuilding a complete event system with javascript is magnitudes faster than the native browser event system?!?!? Sounds pretty much like browsers don't care about performance at all.
    Also, modifying the native DOM is more expensive than computing the difference between two virtual DOM trees and also modifying the native DOM a little? Sounds pretty much like browsers don't care about performance at all.
    Don't browsers compute a difference first? Don't browsers batch-update? Don't browsers already have an event bubbling system? I'd really like to know how exactly React has achieved better performance. Does it use simpler computations?
    Nice video though.

    • @imtilde
      @imtilde 5 років тому

      browsers render.