Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
React.js Life Cicle
Search
Raúl Palacios
May 13, 2019
Programming
24
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
React.js Life Cicle
Video de la presentación:
https://bit.ly/32kt9eT
Raúl Palacios
May 13, 2019
More Decks by Raúl Palacios
See All by Raúl Palacios
React Router VS MPA
raulpalacios
0
20
Other Decks in Programming
See All in Programming
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Rails World 2026, Austin, Texas
marcoroth
0
220
動作中のプログラムの中身をリアルタイムに覗く / Realtime Debugger for CSharp with Roslyn
prota
1
1.9k
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
sbt 2.0: takeoff
eed3si9n
0
160
ジョジョの世界をXRで再現する
mofurune
0
160
すこし踏み込む CancellationToken
htkym
2
1.7k
ハーネス設計入門 〜 基礎知識の整理から実務へのステップアップ 〜
kinopeee
28
32k
月間100万人のサービス刷新で、 技術選定をHonoに振り切った話
yutobara
8
6.6k
SalesForceを内製化!? ~ HR事業を支える顧客管理基盤のインフラを大公開 ~
oku053
0
180
contenteditable と日本語入力に向き合う
colorful12
0
200
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
2
890
コーディング自動化の次へ。人の介入をゼロにするファクトリーとサポートAIによる実践
timakin
5
3.6k
Featured
See All Featured
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
850
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
380
KATA
mclloyd
PRO
35
16k
A designer walks into a library…
pauljervisheath
211
25k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
710
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.6k
So, you think you're a good person
axbom
PRO
2
2.2k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.3k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3.4k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Transcript
Fases del ciclo de vida
Cada método tiene un prefijo will o did dependiendo de
si ocurren antes o después de cierta acción
MONTADO
constructor(props) • Inicializar el estado del componente • Enlazar eventos
• Setear variables globales Nota: El componente aun no se muestra
componentWillMount() • Modificar el estado • No realizar llamados a
API´s • No realizar suscripción a eventos Nota: El componente aun no se muestra
render() • Debe ser una funcion pura • No debe
modificar el estado Nota: El componente ya se muestra
componentDidMount() • El mejor momento para llamar API´s • Realizar
suscripciones a eventos • Modificar estado
ACTUALIZACIÓN
componentWillReceiveProps(nextProps) • Realizar cambios en los estados basado en las
nuevas propiedades
shouldComponentUpdate(nextProps, nextState) • Validar si queremos renderizar o no el
componente
componentWillUpdate(nextProps, nextState) • Realizar cualquier tipo de preparación Antes de
que se actualice la UI
render() • Debe ser una funcion pura • No debe
modificar el estado
componentDidUpdate(prevProps, prevState)
DESMONTADO
componentWillUnmount() • Dejar de escuchar eventos • Desuscribirse de un
WebSocket • Cancelar peticiones HTTP
ERRORES
componentDidCatch() • Control de errores