SurviveJS - React
SurviveJS - React
De aprendiz a maestro
Sobre este libro
La librería React de Facebook está detrás de una creciente cantidad de sitios web, y es que hay una buena razón para ello: simplifica enormemente el desarrollo del frontend.
SurviveJS - React te muestra cómo construir una aplicación sencilla de tipo Kanban basada en estas tecnologías. Durante el proceso:
- Aprenderás las ideas que hay detrás de React.
- Aprenderás a diseñar jerarquías de componentes a medida que avances con la aplicación.
- Entrarás en la forma de pensar de React mientras aprendes cómo pensar en el estado y gestionarlo adecuadamente.
- Darás estilo a tu aplicación de React de varias formas que están terminando de surgir.
- Implementarás el arrastrar y soltar en tu aplicación usando React DnD.
Además, la versión de Leanpub en inglés contiene capítulos exclusivos que te mostrarán cómo:
- Lidiar con el tipado en React.
- Probar tu aplicación de React de varias maneras.
El libro asume que tienes conocimientos básicos de Javascript y que sabes cómo usar npm.
El contenido del libro estará disponible online en es.survivejs.com.
Table of Contents
-
-
Introducción
- ¿Qué es React?
- ¿Qué Vas a Aprender?
- ¿Cómo está Organizado este Libro?
- ¿Qué es Kanban?
- ¿Para Quién es Este Libro?
- ¿Cómo Abordar el Libro?
- Versionado del Libro
- Material Extra
- Cómo Obtener Soporte
- Notificaciones
- Agradecimientos
-
Introducción
-
I Comenzando
-
1. Introducción a React
- 1.1 ¿Qué es React?
- 1.2 DOM Virtual
- 1.3 Renderizadores de React
-
1.4
React.createElement
y JSX - 1.5 Conclusión
-
2. Configurando el Proyecto
- 2.1 Configuración de Node.js y Git
- 2.2 Ejecutando el Proyecto
-
2.3
scripts
de npm Presentes en el Esqueleto - 2.4 Características del Lenguaje Presentes en el Esqueleto
- 2.5 Conclusión
-
3. Implementando una Aplicación de Notas
- 3.1 Modelo de Datos Inicial
- 3.2 Renderizado de los Datos Iniciales
- 3.3 Generando los Ids
- 3.4 Añadiendo Nuevas Notas a la Lista
- 3.5 Conclusión
-
4. Borrado de
Notas
-
4.1 Separación de
Nota
-
4.2 Añadir un Esqueleto para la Llamada a
onDelete
-
4.3 Comunicar el Borrado a
App
- 4.4 Conclusión
-
4.1 Separación de
-
5. Comprendiendo los Componentes de React
- 5.1 Métodos del Ciclo de Vida
- 5.2 Refs
- 5.3 Propiedades y Métodos Propios
- 5.4 Convenciones de los Componentes de React
- 5.5 Conclusión
-
6. Edición de
Notas
-
6.1 Implementación de
Editable
-
6.2 Extrayendo el Renderizado de
Nota
-
6.3 Inclusión del Esqueleto
Editable
-
6.4 Conectando
Editable
conNotas
-
6.5 Haciendo un Seguimiento del Estado
editing
deNota
-
6.6 Implementación de
Edit
- 6.7 Sobre los Componentes y el Espacio de Nombres
- 6.8 Conclusión
-
6.1 Implementación de
-
7. Dando Estilo a la Aplicación de Notas
- 7.1 Aplicando Estilo sobre el Botón “Añadir Nota”
-
7.2 Aplicando estilos sobre
Notas
- 7.3 Aplicando Estilos sobre Notas Individuales
- 7.4 Conclusión
-
1. Introducción a React
-
II Implementando Kanban
-
8. React y Flux
- 8.1 Breve Introducción a Redux
- 8.2 Breve Introducción a MobX
- 8.3 ¿Qué Sistema de Gestión de Estados Debería Utilizar?
- 8.4 Introducción a Flux
- 8.5 Migrando a Alt
-
8.6 Entendiendo
conectar
- 8.7 Usando el Dispatcher en Alt
- 8.8 Conclusión
-
9. Implementando
NoteStore
yNoteActions
-
9.1 Configurando un
NoteStore
- 9.2 Entendiendo las Acciones
-
9.3 Configurando
NoteActions
-
9.4 Conectando
NoteActions
conNoteStore
-
9.5 Migrando
App.addNote
a Flux -
9.6 Migrando
App.deleteNote
a Flux -
9.7 Migrando
App.activateNoteEdit
a Flux -
9.8 Migrando
App.editNote
a Flux - 9.9 Conclusión
-
9.1 Configurando un
-
10. Implementando Persistencia en
localStorage
-
10.1 Entendiendo
localStorage
-
10.2 Implementando un Envoltorio para
localStorage
-
10.3 Persistiendo la Aplicación usando
FinalStore
- 10.4 Implementando la Lógica de Persistencia
- 10.5 Conectando la Lógica de Persistencia con la Aplicación
-
10.6 Limpiando
NoteStore
- 10.7 Implementaciones Alternativas
- 10.8 ¿Relay?
- 10.9 Conclusión
-
10.1 Entendiendo
-
11. Gestionado Dependencias de Datos
-
11.1 Definiendo
Carriles
-
11.2 Conectando
Carriles
conApp
-
11.3 Modelando
Carril
-
11.4 Haciendo que
Carriles
sea el Responsable deNotas
-
11.5 Extrayendo
LaneHeader
(Cabecera de Carril) deCarril
- 11.6 Conclusión
-
11.1 Definiendo
-
12. Editando los Carriles
-
12.1 Implementando la Edición de Nombres de
Carril
-
12.2 Implementando el Borrado de
Carril
- 12.3 Dando Estilo al Tablero Kanban
- 12.4 Conclusión
-
12.1 Implementando la Edición de Nombres de
-
13. Implementado Arrastrar y Soltar
- 13.1 Configurando React DnD
- 13.2 Permitiendo que las Notas sean Arrastradas
- 13.3 Permitiendo a las Notas que Detecten Notas que Pasan por Encima
-
13.4 Desarrollando el API
onMove
paraNotas
- 13.5 Añadiendo Acciones en el Movimiento
- 13.6 Implementando la Lógica de Arrastrar y Soltar Notas
- 13.7 Arrastrando Notas sobre Carriles Vacíos
- 13.8 Conclusión
-
8. React y Flux
-
III Técnicas Avanzadas
-
14. Probando React
- 14.1 TL;DR
-
15. Tipado con React
- 15.1 TL;DR
-
16. Aplicando Estilo a React
- 16.1 Estilo a la Vieja Usanza
- 16.2 Metodologías CSS
- 16.3 Procesadores CSS
- 16.4 Aproximaciones Basadas en React
- 16.5 Módulos CSS
- 16.6 Conclusión
-
17. Estructurando Proyectos con React
- 17.1 Un Directorio por Concepto
- 17.2 Un Directorio por Componente
- 17.3 Un Directorio por Vista
- 17.4 Conclusión
-
14. Probando React
-
Apéndices
-
Características del Lenguaje
- Módulos
- Clases
- Propiedades de las Clases e Iniciadores de Propiedades
- Funciones
- Interpolación de Strings
- Destructuring
- Iniciadores de Objetos
-
const
,let
,var
- Decoradores
- Conclusión
-
Entendiendo los Decoradores
- Implementando un Decorador para Generar Logs
-
Implementado
@connect
- Ideas para Decoradores
- Conclusión
-
Resolución de Problemas
-
EPEERINVALID
- Warning: setState(…): Cannot update during an existing state transition
- Warning: React attempted to reuse markup in a container but the checksum was invalid
-
Module parse failed
- El Proyecto Falla al Compilar
-
-
Características del Lenguaje
Authors have earned$9,909,464writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.
Más información sobre cómo escribir en Leanpub
Leanpub incondicional, sin riesgo, 100% de felicidad garantizada
Durante los primeros 45 días de compra, puedes obtener un reembolso del 100% de cualquier compra Leanpub, en dos clics. Procesamos las restituciones manualmente, así que puede tomarse unos días en aparecer. Véase términos completos.
Actualizaciones gratis. Libre de DRM.
¡Si compras un libro Leanpub obtienes actualizaciones gratis siempre y cuando el autor actualice el libro! Varios autores usan Leanpub para publicar sus libros en progreso mientras los escriben. Todos los lectores obtienen actualizaciones gratis, independientemente de cuándo compraron el libro o cuánto pagaron (incluyendo si fue gratis).
La mayoría de los libros Leanpub se encuentran disponibles en PDF (para computadores), EPUB (para teléfonos y tabletas) y MOBI (para Kindle). Los formatos que un libro incluye se muestran en la esquina superior derecha de esta página.
Finalmente, los libros Leanpub no tienen ninguna de las cosas sin sentido sobre protección de copia DRM, así que puedes leerlos fácilmente en cualquier dispositivo que se soporta.
Aprende más sobre los formatos de Leanpub y dónde puedes leerlos
Top Books
C++ Best Practices
Jason TurnerLevel up your C++, get the tools working for you, eliminate common problems, and move on to more exciting things!
Continuous Delivery Pipelines
Dave FarleyThis practical handbook provides a step-by-step guide for you to get the best continuous delivery pipeline for your software.
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
Rainer GrimmC++20 is the next big C++ standard after C++11. As C++11 did it, C++20 changes the way we program modern C++. This change is, in particular, due to the big four of C++20: ranges, coroutines, concepts, and modules.
The book is almost daily updated. These incremental updates ease my interaction with the proofreaders.
Atomic Kotlin
Bruce Eckel and Svetlana IsakovaFor both beginning and experienced programmers! From the author of the multi-award-winning Thinking in C++ and Thinking in Java together with a member of the Kotlin language team comes a book that breaks the concepts into small, easy-to-digest "atoms," along with exercises supported by hints and solutions directly inside IntelliJ IDEA!
Introductory Statistics with Randomization and Simulation
Mine Cetinkaya-Rundel, Christopher Barr, OpenIntro, and David DiezA complete foundation for Statistics, also serving as a foundation for Data Science, that introduces inference using randomization and simulation while covering traditional methods.
Leanpub revenue supports OpenIntro, so we can provide free desk copies to teachers interested in using our books in the classroom.
More resources: openintro.org.
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.
Java OOP Done Right
Alan MellorObject Oriented Programming is still a great way to create clean, maintainable code. But only if you use it right.
This book gives you 25 years of OO best practice, ready to use.
You'll learn to design objects behaviour-first, use TDD to help, then confidently apply Design Patterns, SOLID principles and Refactoring to make clean, crafted code.
Introducing EventStorming
Alberto BrandoliniThe deepest tutorial and explanation about EventStorming, straight from the inventor.
Discrete Mathematics for Computer Science
Alexander Shen, Alexander S. Kulikov, Vladimir Podolskii, and Aleksandr GolovnevThis book supplements the DM for CS Specialization at Coursera and contains many interactive puzzles, autograded quizzes, and code snippets. They are intended to help you to discover important ideas in discrete mathematics on your own. By purchasing the book, you will get all updates of the book free of charge when they are released.
Top Bundles
- #1
Software Architecture for Developers: Volumes 1 & 2 - Technical leadership and communication
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... - #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
Cisco CCNA 200-301 Complet
4 Books
Ce lot comprend les quatre volumes du guide préparation à l'examen de certification Cisco CCNA 200-301. - #4
Modern C++ by Nicolai Josuttis
2 Books
- #5
CCDE Practical Studies (All labs)
3 Books
CCDE lab - #6
"The C++ Standard Library" and "Concurrency with Modern C++"
2 Books
Get my books "The C++ Standard Library" and "Concurrency with Modern C++" in a bundle. The first book gives you the details you should know about the C++ standard library; the second one dives deeper into concurrency with modern C++. In sum, you get more than 600 pages full of modern C++ and about 250 source files presenting the standard library... - #7
Mastering Containers
2 Books
Docker and Kubernetes are taking the world by storm! These books will get you up-to-speed fast! Docker Deep Dive is over 400 pages long, and covers all objectives on the Docker Certified Associate exam.The Kubernetes Book includes everything you need to get up and running with Kubernetes! - #8
Modern Management Made Easy
3 Books
Read all three Modern Management Made Easy books. Learn to manage yourself, lead and serve others, and lead the organization. - #9
The Future of Digital Health
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 and how technology giants such as Amazon or Google want to conquer... - #10
Django for Beginners/APIs/Professionals
3 Books