Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
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
63
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
68
Other Decks in Programming
See All in Programming
組み合わせ爆発にのまれない - 責務分割 x テスト
halhorn
1
160
AIエンジニアリングのご紹介 / Introduction to AI Engineering
rkaga
8
3.2k
Graviton と Nitro と私
maroon1st
0
130
AIエージェントの設計で注意するべきポイント6選
har1101
5
2k
The Art of Re-Architecture - Droidcon India 2025
siddroid
0
120
生成AI時代を勝ち抜くエンジニア組織マネジメント
coconala_engineer
0
380
Flutter On-device AI로 완성하는 오프라인 앱, 박제창 @DevFest INCHEON 2025
itsmedreamwalker
1
140
Deno Tunnel を使ってみた話
kamekyame
0
220
LLM Çağında Backend Olmak: 10 Milyon Prompt'u Milisaniyede Sorgulamak
selcukusta
0
130
フルサイクルエンジニアリングをAI Agentで全自動化したい 〜構想と現在地〜
kamina_zzz
0
250
マスタデータ問題、マイクロサービスでどう解くか
kts
0
110
実はマルチモーダルだった。ブラウザの組み込みAI🧠でWebの未来を感じてみよう #jsfes #gemini
n0bisuke2
3
1.3k
Featured
See All Featured
Getting science done with accelerated Python computing platforms
jacobtomlinson
0
76
Designing for Timeless Needs
cassininazir
0
91
Being A Developer After 40
akosma
91
590k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
160
Git: the NoSQL Database
bkeepers
PRO
432
66k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
35
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.4k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.6k
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.3k
Are puppies a ranking factor?
jonoalderson
0
2.4k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
67
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