V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
xiongjiabin

学习之 react & immutable

  •  
  •   xiongjiabin · Feb 26, 2016 · 2000 views
    This topic created in 3716 days ago, the information mentioned may be changed or developed.

    https://www.youtube.com/watch?v=I7IdS-PbEgI
    all about immutable data & react

    javascript 中的对象传递类似 C++中的引用或者指针
    immutable 重新建立一个对象,采用了( share struct 的方式进行复制)
    equale,is 是通过 value 相等来判断的
    === 判断是不是同一个 instance
    set , push 重新建立一个对象

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3531 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 04:19 · PVG 12:19 · LAX 21:19 · JFK 00:19
    ♥ Do have faith in what you're doing.