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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
5
1k
CSC307 Lecture 06
javiergs
PRO
0
680
20260127_試行錯誤の結晶を1冊に。著者が解説 先輩データサイエンティストからの指南書 / author's_commentary_ds_instructions_guide
nash_efp
1
960
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
610
Fragmented Architectures
denyspoltorak
0
150
Patterns of Patterns
denyspoltorak
0
1.4k
今こそ知るべき耐量子計算機暗号(PQC)入門 / PQC: What You Need to Know Now
mackey0225
3
370
そのAIレビュー、レビューしてますか? / Are you reviewing those AI reviews?
rkaga
6
4.6k
それ、本当に安全? ファイルアップロードで見落としがちなセキュリティリスクと対策
penpeen
7
3.9k
Lambda のコードストレージ容量に気をつけましょう
tattwan718
0
120
Oxlintはいいぞ
yug1224
5
1.3k
AI によるインシデント初動調査の自動化を行う AI インシデントコマンダーを作った話
azukiazusa1
1
730
Featured
See All Featured
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
340
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
170
YesSQL, Process and Tooling at Scale
rocio
174
15k
Ethics towards AI in product and experience design
skipperchong
2
190
The Limits of Empathy - UXLibs8
cassininazir
1
210
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
0
430
We Are The Robots
honzajavorek
0
160
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.2k
Between Models and Reality
mayunak
1
190
Exploring anti-patterns in Rails
aemeredith
2
250
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
430
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