Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
React.js Life Cicle
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Raúl Palacios
May 13, 2019
Programming
0
22
React.js Life Cicle
Video de la presentación:
https://bit.ly/32kt9eT
Raúl Palacios
May 13, 2019
Tweet
Share
More Decks by Raúl Palacios
See All by Raúl Palacios
React Router VS MPA
raulpalacios
0
17
Other Decks in Programming
See All in Programming
CSC307 Lecture 03
javiergs
PRO
1
490
登壇資料を作る時に意識していること #登壇資料_findy
konifar
4
1.1k
コントリビューターによるDenoのすゝめ / Deno Recommendations by a Contributor
petamoriken
0
200
疑似コードによるプロンプト記述、どのくらい正確に実行される?
kokuyouwind
0
380
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
7.4k
高速開発のためのコード整理術
sutetotanuki
1
400
それ、本当に安全? ファイルアップロードで見落としがちなセキュリティリスクと対策
penpeen
7
3.9k
IFSによる形状設計/デモシーンの魅力 @ 慶應大学SFC
gam0022
1
300
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
170
余白を設計しフロントエンド開発を 加速させる
tsukuha
7
2.1k
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
460
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
200
Featured
See All Featured
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
The Invisible Side of Design
smashingmag
302
51k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
410
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
0
140
Building Flexible Design Systems
yeseniaperezcruz
330
40k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
210
Are puppies a ranking factor?
jonoalderson
1
2.7k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
710
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
110
How to Talk to Developers About Accessibility
jct
2
130
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
117
110k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
0
1.1k
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