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

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ม.ค. 2025

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

  • @jsconf_
    @jsconf_  11 ปีที่แล้ว +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 10 ปีที่แล้ว +1

    I couldn't agree more.

  • @bingohuang3837
    @bingohuang3837 8 ปีที่แล้ว

    Nice talk, benefit a lot

  • @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.

  • @happypeter1983
    @happypeter1983 9 ปีที่แล้ว

    This is super!

  • @ftorre104
    @ftorre104 10 ปีที่แล้ว

    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 10 ปีที่แล้ว

      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)

  • @cablegunmaster
    @cablegunmaster 9 ปีที่แล้ว

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

    • @ilovecomputers
      @ilovecomputers 8 ปีที่แล้ว

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

  • @bichitomax
    @bichitomax 11 ปีที่แล้ว

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

    • @MalteUbl
      @MalteUbl 11 ปีที่แล้ว

      Sure, just send us the sub titles.

  • @DerekBraid
    @DerekBraid 11 ปีที่แล้ว

    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.