Путь к изучению React (The Bare Essentials)
Путь к изучению React
Ваше путешествие по освоению обычного, но прагматичного React
О книге
🎉 Читай официальный перевод документации! ➡️ ru.reactjs.org 🎉 (⭐ ...и не забудь поставить «звёздочку» репозиторию! ⭐)
* * *
Путь к изучению React (The Road to learn React) научит вас основам React. Вы создадите реальное приложение по пути обучения с использованием обычного React без сложного инструментария. Будет объяснено всё, начиная от установки проекта и заканчивая развёртыванием (деплоем) приложения на сервере. Книга содержит ссылки на дополнительное чтение и упражнения в каждой главе. После прочтения книги вы сможете создавать собственные приложения с использованием React. Материал книги постоянно обновляется автором и сообществом.
В книге Путь к изучению React даются фундаментальные основы, прежде чем вы начнёте погружаться в обширную экосистему React. В книге используется мало инструментов и немного управление состоянием, но зато в ней много информации про React. Она объясняет общие концепции, паттерны и лучшие практики, используемые в React-приложении.
Вы научитесь создавать собственное приложение на React. Книга охватывает возможности, применяемые в реальном мире, такие как постраничная навигация, кеширование на стороне клиента и такие взаимодействия как поиск и сортировка. Кроме того, в процессе чтения вы перейдёте с JavaScript ES5 на JavaScript ES6. Я надеюсь, что эта книга отразит мой энтузиазм по отношению к React и JavaScript, и поможет вам начать работать с React.
Что вы можете ожидать (на данный момент...)
- Hacker News App на React
- без сложной конфигурации
- create-react-app для создания вашего приложения
- лёгкий эффективный код
- использование только setState в React для управления состоянием (пока что...)
- переход от JavaScript ES5 на ES6 по ходу обучения
- использование API React с setState и методами жизненного цикла
- работа с реальным API (Hacker News)
- продвинутые пользовательские взаимодействия
- создание сортировки на стороне клиента
- создание фильтрации на стороне клиента
- реализация поиска на стороне сервера
- реализация кеширования на стороне клиента
- понимание функций высшего порядка и компонентов высшего порядка
- тестирование снимками с помощью Jest
- модульное тестирование компонентов с помощью Enzyme
- изучение отличных библиотек в процессе изучения
- упражнения и ссылки дополнительное чтение по ходу дела
- усвоение и укрепление ваших знаний
- деплой приложения на продакшен
Что требуется для чтения этой книги
Прежде чем вы начнете читать книгу, вам потребуются знания HTML, CSS и JavaScript (ES5). Книга будет учить ES6 и за пределами его синтаксиса. Когда вы приходите из другого фреймворка или библиотеки для создания одностраничных приложений, вы уже знакомы с этими основами. Когда вы только начали заниматься веб-разработкой, вы ощущаете себя вполне комфортно с HTML, CSS и JavaScript для изучения React.
Пакеты
The Bare Essentials
PDF
EPUB
MOBI
WEB
Русский
The Coder Package
Access exciting projects and boilerplate projects to go beyond plain React. Combine solutions such as React Router and Firebase with your application.
Includes:
Unlock Content Instructions
PDF
EPUB
MOBI
WEB
Русский
The Bare Essentials (5 Licenses)
PDF
EPUB
MOBI
WEB
Русский
The Bare Essentials (10 Licenses)
PDF
EPUB
MOBI
WEB
Русский
О соавторах
Оглавление
- Предисловие
- Об авторе
- Отзывы
- Образование для детей
- Часто задаваемые вопросы
- Журнал изменений
- Как читать книгу?
- Вызов
-
Об этом переводе
- Небольшая предыстория
- Немного о переводчике
- Немного о редакторе
- Соглашения, принятые в переводе
- В добрый путь
-
Введение в React
- Привет, меня зовут React.
- Требования
- node и npm
- Установка
- Установка без конфигурации
- Введение в JSX
- const и let в ES6
- ReactDOM
- Горячая перезагрузка
- Комплексный JavaScript в JSX
- Стрелочные функции ES6
- Классы ES6
-
Основы React
- Внутреннее состояние компонента
- Инициализация объектов ES6
- Однонаправленный поток данных
- Привязки
- Обработчик событий
- Взаимодействия с формами и событиями
- Деструктуризация ES6
- Контролируемые компоненты
- Разделение компонентов
- Компонуемые компоненты
- Повторно используемые компоненты
- Объявления компонентов
- Стилизация компонентов
-
Получение реальных данных с API
- Методы жизненного цикла
- Получение данных
- Оператор расширения ES6
- Отрисовка по условию
- Поиск на стороне клиента и на стороне сервера
- Получение данных с разбивкой на страницы
- Кеш клиента
- Обработка ошибок
- Использование Axios вместо Fetch
-
Организация и тестирование кода
- Модули ES6: импорт и экспорт
- Организация кода с помощью модулей в ES6
- Тестирование снимками с помощью Jest
- Модульное тестирование с помощью Enzyme
- Интерфейс компонента с помощью PropTypes
- Отладка с помощью инструментов разработчика React
-
Продвинутые React-компоненты
- Ссылка на DOM-элемент
- Загрузка …
- Компоненты высшего порядка
- Продвинутая сортировка
-
Управление состоянием в React и за его пределами
- Подъём состояния
- Пересмотр: setState()
- Укрощение состояния
-
Заключительные шаги к развёртыванию в продакшене
- Команда eject
- Деплой приложения
- Краткий обзор
Безусловная 100% гарантия счастья без риска от Leanpub
В течение 60 дней с момента покупки вы можете получить 100% возврат средств на любую покупку в Leanpub всего в два клика. Мы обрабатываем заявки на возврат средств вручную, так что этот процесс может занять несколько дней. Смотрите полные условия.
Do Well. Do Good.
Authors have earned$11,724,246writing, 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
Recipes for Decoupling
Matthias NobackWrite software that survives
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
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.
Rector - The Power of Automated Refactoring
Matthias Noback and Tomas VotrubaLearn how to automatically and continuously upgrade and improve your PHP code base
Maîtriser Apache JMeter
Philippe Mouawad, Bruno Demion (Milamber), and Antonio Gomes RodriguesToute la puissance d'Apache JMeter expliquée par ses commiteurs et utilisateurs experts. De l'intégration continue en passant par le Cloud, vous découvrirez comment intégrer JMeter à vos processus "Agile" et Devops.
If you're looking for the newer english version of this book, go to Master JMeter : From load testing to DevOps
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:
Jetpack Compose internals
Jorge CastilloJetpack Compose is the future of Android UI. Master how it works internally and become a more efficient developer with it. You'll also find it valuable if you are not an Android dev. This book provides all the details to understand how the Compose compiler & runtime work, and how to create a client library using them.
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.
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 most complete guide around introducing 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.
Top Bundles
- #2
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... - #3
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... - #4
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... - #5
Static Analysis and Automated Refactoring
2 Books
As PHP developers we are living in the "Age of Static Analysis". We can use a tool like PHPStan to learn about potential bugs before we ship our code to production, and we can enforce our team's programming standards using custom PHPStan rules. Recipes for Decoupling by Matthias Noback teaches you in great detail how to do this, while also... - #9
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...