$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
States, props and React Native
Search
Caio Alcântara
April 08, 2017
Technology
0
46
States, props and React Native
Entenda como pensar, estruturar e gerir o seu state de forma inteligente.
Caio Alcântara
April 08, 2017
Tweet
Share
Other Decks in Technology
See All in Technology
業務のトイルをバスターせよ 〜AI時代の生存戦略〜
staka121
PRO
2
220
年間40件以上の登壇を続けて見えた「本当の発信力」/ 20251213 Masaki Okuda
shift_evolve
PRO
1
140
.NET 10の概要
tomokusaba
0
120
ActiveJobUpdates
igaiga
1
140
MLflowダイエット大作戦
lycorptech_jp
PRO
1
140
AWS re:Invent 2025~初参加の成果と学び~
kubomasataka
0
120
Lambdaの常識はどう変わる?!re:Invent 2025 before after
iwatatomoya
1
630
Power of Kiro : あなたの㌔はパワステ搭載ですか?
r3_yamauchi
PRO
0
180
Strands Agents × インタリーブ思考 で変わるAIエージェント設計 / Strands Agents x Interleaved Thinking AI Agents
takanorig
2
170
AIエージェント開発と活用を加速するワークフロー自動生成への挑戦
shibuiwilliam
4
280
品質のための共通認識
kakehashi
PRO
4
360
MLflowで始めるプロンプト管理、評価、最適化
databricksjapan
1
260
Featured
See All Featured
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
BBQ
matthewcrist
89
9.9k
Producing Creativity
orderedlist
PRO
348
40k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
8.3k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.8k
Bash Introduction
62gerente
615
210k
Writing Fast Ruby
sferik
630
62k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
The Power of CSS Pseudo Elements
geoffreycrofte
80
6.1k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Testing 201, or: Great Expectations
jmmastey
46
7.8k
Transcript
States, props and React Native Gerindo o fluxo de informação
na sua aplicação de forma inteligente
Quem? Caio Lucas Alcântara - @clucasalcantara Mobile Software Engineer
ONE WAY DATA FLOW
React Native Component LifeCycle
State and Props Variáveis utilizadas para controlar as informações que
fluem na interface.
State Estado, literalmente. Representa tudo o que está "instanciado" na
sua aplicação. Sua atualização dispara o render.
Props Informações recebidas na construção do componente, herdadas pelo pai,
imutáveis.
Evite modelar o state baseando-se na API:
None
Nunca guarde dados derivados do seu estado A idéia é
aproveitar os side effects condicionados
Seu state deve ser um cidadão de primeira classe Imperativo
versus Declarativo versus Reativo
Vai dar merda, sempre dá :)
Abordagens com JS para facilitar a manipulação do fluxo Router
Flux React Navigation Flux ...
ES6/7 Destructuring Arrow functions Async Await ...
None
Gerenciadores de States Frameworks criados para auxiliar na manipulação de
estados durante a sua aplicação
None
Abstração é bom! Mas não pra aprendizado!! Cuidado ao "caixa
pretar" as coisas.
Obrigado, gente!!