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
Rethinking Components
Search
Vinicius Dacal
June 02, 2016
Programming
0
97
Rethinking Components
Repensando sua aplicação com componentes e React.
Vinicius Dacal
June 02, 2016
Tweet
Share
More Decks by Vinicius Dacal
See All by Vinicius Dacal
Reducing boilerplate with Redux Arc
viniciusdacal
0
64
Evoluindo aplicações legadas
viniciusdacal
0
61
Other Decks in Programming
See All in Programming
AIを活用し、今後に備えるための技術知識 / Basic Knowledge to Utilize AI
kishida
22
5.9k
テストコードはもう書かない:JetBrains AI Assistantに委ねる非同期処理のテスト自動設計・生成
makun
0
580
基礎から学ぶ大画面対応(Learning Large-Screen Support from the Ground Up)
tomoya0x00
0
4.5k
1から理解するWeb Push
dora1998
7
2k
Azure SRE Agentで運用は楽になるのか?
kkamegawa
0
2.6k
Design Foundational Data Engineering Observability
sucitw
3
210
個人軟體時代
ethanhuang13
0
330
はじめてのMaterial3 Expressive
ym223
2
910
概念モデル→論理モデルで気をつけていること
sunnyone
3
300
そのAPI、誰のため? Androidライブラリ設計における利用者目線の実践テクニック
mkeeda
2
3k
Navigating Dependency Injection with Metro
zacsweers
3
3.7k
Performance for Conversion! 分散トレーシングでボトルネックを 特定せよ
inetand
0
3.6k
Featured
See All Featured
Building Adaptive Systems
keathley
43
2.7k
Writing Fast Ruby
sferik
628
62k
Embracing the Ebb and Flow
colly
87
4.8k
GraphQLとの向き合い方2022年版
quramy
49
14k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
3k
The Pragmatic Product Professional
lauravandoore
36
6.9k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.1k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
The Straight Up "How To Draw Better" Workshop
denniskardys
236
140k
Transcript
COMPONENTS RETHINKING
VINICIUS DACAL @vinicius_dacal viniciusdacal
Desenvolvedor Front-end
None
RETHINK APPLICATION
None
RETHINK COMPONENTS
CONTAINER & PRESENTATIONAL
CONTAINER COMPONENTS How things work Subscribe to state Dispatch actions
Aware of behavior
PRESENTATIONAL COMPONENTS How things look Read data from props Invoke
callbacks from props Unaware of behavior
None
None
CRIANDO COMPONENTES DE FORMA ISOLADA
REACT STORYBOOK
None
None
CSS!
OLD WAY
None
None
NÃO ESCALA
Namespace Global (Isolamento) Eliminação de código morto Dependência da ordem
do carregamento Dificuldade de configuração
OOCSS, SMACSS, BEM
CSS PROCESSORS Less Sass Stylus PostCSS cssnext
REACT WAYS
None
INLINE STYLES
None
VANTAGENS Estilo isolado sem seletores Seu estilo fica independente de
ordem Eliminação de código morto Extremamente expressivo
PROBLEMAS DESSA ABORDAGEM Pseudo Elements Pseudo States Media Queries
LIBS Radium React Style
Radium
React Styles
OUTRA ABORDAGEM JSS Aphrodite
JSS
Aphrodite
VANTAGENS EM COMPARAÇÃO AO INLINE Rules Caching Rules Sharing All
css features included Performance
CSS MODULES RULES ARE LOCAL BY DEFAULT
None
None
QUAL A MELHOR ABORDAGEM?
NO ONE KNOWS YET
OBRIGADO!