《React 学习之道》The Road to React (简体中文版) (Book)
《React 学习之道》The Road to React (简体中文版)
通往 React 实战大师之旅:掌握 React 最简单,且最实用的教程
關於本書
《React 学习之道》会教您一些React的基础知识。通过这套教程,您可以使用纯 React 构建一个真正可用的应用程序,而不需要去理会其他复杂的工具。我将为您逐一介绍从开发环境的准备到部署上线的全部过程。本书每一章都包含一些额外的索引资料以及课后练习。在读完本书之后,您将会有能力依靠自己构建一个 React 应用。我,Robin Wieruch,以及整个社区会持续维护和更新这些资料。
通过《React 学习之道》,在开始陷入到更庞大的 React 生态圈之前,我想为您奠定一个良好的基础。它会通过一个真实可用的 React 应用来解释基本概念、设计模式以及最佳实践。
您将会学习构建您自己的 React 应用。这个应用会涉及一些真正可用的功能,比如分页,客户端缓存,以及像搜索和排序这样的交互功能。另外在这个过程中,您会慢慢从 JavaScript ES5 过渡到 JavaScript ES6。我希望这本书能充分体现我对 React 和 JavaScript 的热忱所在,并帮助您能够开始您的开发旅程。
您可以期望学到什么(目前为止...)
- Hacker News的React版本
- 没有复杂的配置
- 用create-react-app来初始化你的应用
- 高效而轻量级的代码
- 使用 React Hooks 来做状态管理(目前为止...)
- 和真实API的交互(Hacker News)
- 高级用户交互
- 客户端排序
- 客户端过滤
- 服务器端搜索
- 客户端缓存的实现
- 高阶函数和高阶组件
- 用Jest进行组件的切片(snapshot)测试
- 用Enzyme进行组件的单元测试
- 过程中学到一些有用的工具库
- 过程中的练习题和扩展阅读
- 认同和巩固你的所学
- 将您的应用部署到产品环境
您需要具备哪些知识?
在开始阅读本书之前,您应该熟悉 HTML、CSS 和 JavaScript(ES5)。本书将会传授 ES6 及其更高版本,如果您熟悉于其它不同的 SPA 框架或库,您应该对这些基本知识已经了然于心。如果您刚刚开始您的 Web 开发之旅,您应该优先学习并掌握 HTML、CSS 和 JavaScript,然后再来学习 React。
書籍目錄
-
前言
- 关于作者
- FAQ
- 本书的面向人群
-
React 基础
- 你好 React
- 基本要求
- 建立一个 React 项目
- 认识React组件
- React JSX
- React 中的列表
- 认识另一种形式的React组件
- 实例化 React 组件
- React DOM
- React 函数定义 (高阶)
- JSX 中的处理函数
- React Props
- React State
- JSX 回调处理函数
- React 状态提升
- 受控组件
- Props 处理(高级)
- React 副作用
- 自定义 React Hook(高级)
- React Fragments
- 可复用组件
- React 组件组合
- 指令式 React
- JSX 中的内联处理函数
- React 异步数据
- React 条件渲染
- React状态进阶
- 不合理的状态
- React 获取数据
- React 重新获取数据
- React 中 Memoized 函数(高级)
- 使用 React 进行显式数据获取
- React中的第三方库
- React 中的 Async / Await (高阶)
- React 表单
-
React 的遗留问题
- React 类组件
- 命令式的 React
-
React 中的样式
- React 中的 CSS 模块化
- React 中的样式组件
- React 中的 SVG
-
React 维护
- React 性能(高级)
- 在React中使用TypeScript
- 从单元测试到集成测试
- React 项目结构
-
真实 React 世界(高级)
- 排序
- 逆序排序
- 记住上一次的搜索记录
- 分页查询
-
部署 React 应用
- 构建过程
- 部署到 Firebase
- 大纲
Leanpub 無條件、無風險的 100% 滿意保證
從付款之後的 60 天內,只要點個兩下,你就可以完成退書並且取回先前支付的全數金額。退書是採用人工作業,因此可能需要花幾天的時間才能完成整個程序。
See full terms.
Do Well. Do Good.
Authors have earned$11,707,309writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Top Books
CQRS by Example
Carlos Buenosvinos, Christian Soronellas, and Keyvan Akbary- Leverage your Software Architecture skills by learning everything about CQRS in detail with lots of examples
- Develop faster applications by applying CQRS and fostering Read Models and Projections
- Learn how to apply CQRS into a brownfield project from a pragmatic approach
Recipes for Decoupling
Matthias NobackWrite software that survives
Ansible for DevOps
Jeff GeerlingAnsible is a simple, but powerful, server and configuration management tool. Learn to use Ansible effectively, whether you manage one server—or thousands.
OpenIntro Statistics
David Diez, Christopher Barr, Mine Cetinkaya-Rundel, and OpenIntroA complete foundation for Statistics, also serving as a foundation for Data Science.
Leanpub revenue supports OpenIntro (US-based nonprofit) so we can provide free desk copies to teachers interested in using OpenIntro Statistics in the classroom and expand the project to support free textbooks in other subjects.
More resources: openintro.org.
C++20 - The Complete Guide
Nicolai M. JosuttisAll new language and library features of C++20 (for those who know previous C++ versions).
The book presents all new language and library features of C++20. Learn how this impacts day-to-day programming, to benefit in practice, to combine new features, and to avoid all new traps.
Buy early, pay less, free updates.
Other books:
Functional Event-Driven Architecture
Gabriel VolpeExplore the event-driven architecture (EDA) in a purely functional way. Learn to design and develop distributed systems that scale. Identify common design patterns in such systems.
Take your functional programming skills to the next level by joining me in developing a distributed system powered by Apache Pulsar and Fs2 streams, all in Scala 3!
The PowerShell Scripting and Toolmaking Book
Don Jones and Jeff HicksLearn the patterns, practices, and details of PowerShell Scripting and Toolmaking from the industry's two most recognized experts on the subject.
Mastering STM32 - Second Edition
Carmine NovielloWith more than 1200 microcontrollers, STM32 is probably the most complete ARM Cortex-M platform on the market. This book aims to be the first guide around that introduces the reader to this exciting MCU portfolio from ST Microelectronics and its official CubeHAL and STM32CubeIDE development environment.
R Programming for Data Science
Roger D. PengThis book brings the fundamentals of R programming to you, using the same material developed as part of the industry-leading Johns Hopkins Data Science Specialization. The skills taught in this book will lay the foundation for you to begin your journey learning data science. Printed copies of this book are available through Lulu.
On Java 8
Bruce EckelBy the author of "Thinking in Java," covering version 8 of the Java programming language (with updates to Java 17). Intended for “dedicated beginners,” it doesn’t assume you know anything about programming and takes you through the material step-by-step. However, I assume you are able to figure things out. It’s not a “dummies” or “idiot’s” guide.
Top Bundles
- #1
Software Architecture
2 Books
"Software Architecture for Developers" is a practical and pragmatic guide to modern, lightweight software architecture, specifically aimed at developers. You'll learn:The essence of software architecture.Why the software architecture role should include coding, coaching and collaboration.The things that you really need to think about before... - #3
CCIE Service Provider Ultimate Study Bundle
2 Books
Piotr Jablonski, Lukasz Bromirski, and Nick Russo have joined forces to deliver the only CCIE Service Provider training resource you'll ever need. This bundle contains a detailed and challenging collection of workbook labs, plus an extensively detailed technical reference guide. All of us have earned the CCIE Service Provider certification... - #4
All the Books of The Medical Futurist
6 Books
We put together the most popular books from The Medical Futurist to provide a clear picture about the major trends shaping the future of medicine and healthcare. Digital health technologies, artificial intelligence, the future of 20 medical specialties, big pharma, data privacy, digital health investments and how technology giants such as Amazon... - #6
Pattern-Oriented Memory Forensics and Malware Detection
2 Books
This training bundle for security engineers and researchers, malware and memory forensics analysts includes two accelerated training courses for Windows memory dump analysis using WinDbg. It is also useful for technical support and escalation engineers who analyze memory dumps from complex software environments and need to check for possible... - #8
Practical FP in Scala + Functional event-driven architecture
2 Books
Practical FP in Scala (A hands-on approach) & Functional event-driven architecture, aka FEDA, (Powered by Scala 3), together as a bundle! The content of PFP in Scala is a requirement to understand FEDA so why not take advantage of this bundle!? - #10
The Python Craftsman
3 Books
The Python Craftsman series comprises The Python Apprentice, The Python Journeyman, and The Python Master. The first book is primarily suitable for programmers with some experience of programming in another language. If you don't have any experience with programming this book may be a bit daunting. You'll be learning not just a programming...