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 16.3 - O que veio de novo?
Search
Guilherme Varandas
May 04, 2018
Programming
0
66
React 16.3 - O que veio de novo?
Apresentação no primeiro "React BSB", apresentando o que veio de novo no release 16.3 do React.
Guilherme Varandas
May 04, 2018
Tweet
Share
More Decks by Guilherme Varandas
See All by Guilherme Varandas
Webpack: Poder ilimitado em suas mãos
gvarandas
1
59
Quer integrar seu app com React-Native? Pergunte-me como.
gvarandas
1
220
Como manter a saúde do seu projeto JS (e a sanidade do seu time)
gvarandas
0
73
Other Decks in Programming
See All in Programming
条件判定に名前、つけてますか? #phperkaigi #c
77web
2
870
[PHPerKaigi 2026]PHPerKaigi2025の企画CodeGolfが最高すぎて社内で内製して半年運営して得た内製と運営の知見
ikezoemakoto
0
310
おれのAgentic Coding 2026/03
tsukasagr
1
120
我々はなぜ「層」を分けるのか〜「関心の分離」と「抽象化」で手に入れる変更に強いシンプルな設計〜 #phperkaigi / PHPerKaigi 2026
shogogg
2
710
Strategy for Finding a Problem for OSS: With Real Examples
kibitan
0
120
Tamach-sre-3_ANDPAD-shimaison93
mane12yurks38
0
200
PHPのバージョンアップ時にも役立ったAST(2026年版)
matsuo_atsushi
0
270
Ruby and LLM Ecosystem 2nd
koic
1
1.4k
Rethinking API Platform Filters
vinceamstoutz
0
3.8k
それはエンジニアリングの糧である:AI開発のためにAIのOSSを開発する現場より / It serves as fuel for engineering: insights from the field of developing open-source AI for AI development.
nrslib
1
670
テレメトリーシグナルが導くパフォーマンス最適化 / Performance Optimization Driven by Telemetry Signals
seike460
PRO
2
200
LM Linkで(非力な!)ノートPCでローカルLLM
seosoft
0
270
Featured
See All Featured
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
900
Are puppies a ranking factor?
jonoalderson
1
3.2k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Building the Perfect Custom Keyboard
takai
2
720
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
400
Believing is Seeing
oripsolob
1
99
WENDY [Excerpt]
tessaabrams
9
37k
We Are The Robots
honzajavorek
0
210
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
120
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.5k
sira's awesome portfolio website redesign presentation
elsirapls
0
200
Ethics towards AI in product and experience design
skipperchong
2
240
Transcript
react O QUE VEIO DE NOVO 16.3
GUILHERME GVARANDAS JIROTHEONE NOVATICS/BB
LANÇADO EM 03/2013 16.3 EM 29/03 VERSÃO ATUAL - 16.3.2
context api morte ao redux?
fonte de dados estado centralizado utilizado pelo redux estável no
react@^16.3
None
None
None
context provider consumer children
Context { Provider, Consumer }
Provider disponibiliza um estado comum
Consumer conecta com o contexto
createRef forwardRef
o que é ref? declarativo vs imperativo
legado string callback ⚰
createRef
encapsulamento apresentação componente temificado higher order components delegação de referência
forwardRe f
ciclo de vida simplificação
muitas opções muitas possibilidades de erro bloqueio do render possíveis
memory leaks
bloqueio do render inicial possíveis memory leaks evolução do modelo
original async rendering mode compilador react (prepack.io)
componentWillMount RIP ⚰ componentWillReceiveProps componentWillUpdate
16.3.2 16.X 17.X “deprecated” deprecation warnings prefixo “UNSAFE_”
getDerivedStateFromProps novos métodos getSnapshotBeforeUpdate
gdfp getDerivedStateFromProps invocado após ser instanciado ou antes de um
re-render
gdfp getDerivedStateFromProps
gdfp getDerivedStateFromProps retorna um estado puro para merge não tem
acesso ao “this” método estático
gdfp getDerivedStateFromProps substitui componentWillReceiveProps deve declarar state inicial callbacks =>
componentDidUpdate ⚠
gsbu getSnapshotBeforeUpdate invocado antes do DOM ser atualizado
gsbu getSnapshotBeforeUpdate parâmetro => componentDidUpdate
None
StrictMode olar debug
None
ciclos de vida depreciados ref api legado (string) possíveis efeitos
colaterais StrictMode
None
render phase (lento) compara modificações (diff) commit phase (rápido) aplica
modificações no DOM
evita mudanças não determinísticas constructor render setState getDerivedStateFromProps
⚠ não tem efeito em builds de produção
recap tá liberado anotar
API de contexto createRef / forwardRef novo ciclo de vida
StrictMode component
confira nosso post sobre a api de contexto !nyurl.com/nova!csreactapi
É NOIS VALEU