React14性能优化之React.memo

  • React.memo是一个高阶组件的写法
  • React.memo让函数组件也拥有了PrueComponent的功能
  • 使用例子如下:
        
 
示例:
//改写上一个随笔里面的Title组件
 

猜你喜欢

转载自www.cnblogs.com/tengfeiS/p/12151946.html