Skip to Content
React学习手册
book

React学习手册

by Alex Banks, Eve Porcello
December 2017
Intermediate to advanced
329 pages
6h 9m
Chinese
China Electric Power Press Ltd.
Content preview from React学习手册
6
1
障碍和绊脚石
花几分钟时间学习了
React
组件的相关知识之后,读者应该会了解到与以往不同的一
Web
开发方式。不过在用户开始使用
React
编写程序之前还有不少障碍需要克服。
React
是一个脚本库
首先,
React
是一款小型脚本库,并且只能完成部分工作。它并没有像一般的
JavaScript
框架那样附带用户需要的所有工具。开发生态环境中所需的大部分工具需
要用户自主选择。此外,新工具的不断涌现,旧的工具就会被取而代之。随着越来越
多的库名称出现在团队讨论中,真有点让人应接不暇。
新的
ECMAScript
语法
React
相对于
JavaScript
历史来说,正处于一个非常重要而又混乱的时代。
ECMA
过去
发布相关规范的频率非常低。有时需要长达
10
年才发布一版新规范。这意味着开发者
不需要花太多时间学习新的语法。
2015
年以来,每年都会有新的语言特性和语法发布。最近一年多(
ECMAScript
2016,ECMAScript 2017
)甚至更新了数个版本系统(
ECMAScript3, ECMAScript
5
)。随着该语言的发展,
React
社区的早期使用者倾向于使用新的语法。这通常意味
着开发文档会假定用户是了解最新的
ECMAScript
语法的。如果用户不熟悉最新的语
法规范,那么浏览
React
代码时就会晕头转向。
JavaScript
函数式编程的兴起
除了语言层面上出现的变化之外,
JavaScript
函数式编程也后劲十足。
JavaScript
不一
定必须是一门函数式编程语言,不过可以在
JavaScript ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

React快速上手开发

React快速上手开发

Stoyan Stefanov
C++语言导学(原书第2版)

C++语言导学(原书第2版)

本贾尼 斯特劳斯特鲁普

Publisher Resources

ISBN: 9787519814236