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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Guilherme Varandas
May 04, 2018
Programming
0
64
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
210
Como manter a saúde do seu projeto JS (e a sanidade do seu time)
gvarandas
0
71
Other Decks in Programming
See All in Programming
KIKI_MBSD Cybersecurity Challenges 2025
ikema
0
1.3k
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
6.1k
dchart: charts from deck markup
ajstarks
3
1k
AI時代の認知負荷との向き合い方
optfit
0
160
ぼくの開発環境2026
yuzneri
0
240
生成AIを活用したソフトウェア開発ライフサイクル変革の現在値
hiroyukimori
PRO
0
100
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
7.5k
Grafana:建立系統全知視角的捷徑
blueswen
0
330
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
180
QAフローを最適化し、品質水準を満たしながらリリースまでの期間を最短化する #RSGT2026
shibayu36
2
4.4k
カスタマーサクセス業務を変革したヘルススコアの実現と学び
_hummer0724
0
730
AWS re:Invent 2025参加 直前 Seattle-Tacoma Airport(SEA)におけるハードウェア紛失インシデントLT
tetutetu214
2
120
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
77
5.3k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
78
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
740
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
190
Marketing to machines
jonoalderson
1
4.6k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.9k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.4k
Scaling GitHub
holman
464
140k
Building Adaptive Systems
keathley
44
2.9k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
590
Navigating Team Friction
lara
192
16k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.1k
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