• 课程介绍
  • 学习计划
  • 30分钟入门
  • ES5-next准备
    • map/filter/reduce
    • let/const
    • 字符串插值
    • for-of
    • 箭头函数
    • 默认参数值
    • Rest parameters
    • 解构
    • class
    • Promise & async/await
  • 开发环境搭建
    • 编辑器
    • create-react-app
    • 调试工具
  • React基础知识
    • JSX
    • Stateless Component
    • State and Lifecycle
    • 事件
    • Lists and Keys
  • React样式
    • styled-components基础用法
    • styled-components设计原理
    • styled-components高级用法
    • styled-components API
  • 路由
    • react-router
    • history
  • Redux
    • egg-getting-started-with-redux
    • egg-building-react-applications-with-idiomatic-redux
    • redux-tool
    • redux源码阅读
  • 介绍几个React组件库
  • 代码检查
    • ESlint
    • JS code style
    • Flow
    • Typescript
  • 测试
    • Mocha
    • AVA
    • Jest
    • enzyme
  • 调试
    • Mock
  • 部署
  • 其他
    • 优化
    • 不可变对象
    • 高阶组件
    • 一些有用的React项目
    • React Native
    • 微信小程序
  • 项目实战
  • 本書使用 GitBook 釋出

箭头函数

箭头函数

  • https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Functions/Arrow_functions
  • https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions
  • https://hacks.mozilla.org/2015/06/es6-in-depth-arrow-functions/
  • http://www.infoq.com/cn/articles/es6-in-depth-arrow-functions

简单总结就是一句话: 能用箭头函数的地方就别用function定义!

results matching ""

    No results matching ""