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
Empowering your React application with Flow typ...
Search
Olena Sovyn
December 06, 2019
Technology
55
0
Share
Empowering your React application with Flow type system
Olena Sovyn
December 06, 2019
More Decks by Olena Sovyn
See All by Olena Sovyn
Hidden Gems in Code Reviews
kiwka
0
55
Testing, tEstIng, TeStInG or how to test React apps with generated input data
kiwka
1
690
Building Webflow Ecommerce in 3 stories
kiwka
0
95
Building a Chrome Extension with React
kiwka
0
750
Understanding Recompose through examples
kiwka
0
520
On the way to making React components more reusable
kiwka
2
330
Using Facade pattern with JSX
kiwka
4
420
Other Decks in Technology
See All in Technology
見えない開発現場を、見える投資に変える
rojoudotcom
2
110
建設的な現実逃避のしかた / How to practice constructive escapism
pauli
4
300
I ran an automated simulation of fake news spread using OpenClaw.
zzzzico
1
1k
Kubernetes基盤における開発者体験 とセキュリティの両⽴ / Balancing developer experience and security in a Kubernetes-based environment
chmikata
0
220
Databricksを用いたセキュアなデータ基盤構築とAIプロダクトへの応用.pdf
pkshadeck
PRO
0
220
New CBs New Challenges
ysuzuki
1
160
すごいぞManaged Kubernetes
harukasakihara
1
370
AgentCore RuntimeからS3 Filesをマウントしてみる
har1101
3
380
AI環境整備はどのくらい開発生産性を変えうるか? #AI駆動開発 #AI自走環境
ucchi0909
0
100
NgRx SignalStore: The Power of Extensibility
rainerhahnekamp
0
140
英語翻訳を通じて 音声AIエージェント入門してみた
shichijoyuhi
0
110
ふりかえりがなかった職能横断チームにふりかえりを導入してみて学んだこと 〜チームのふりかえりを「みんなで未来を考える場」にするプロローグ設計〜
masahiro1214shimokawa
0
260
Featured
See All Featured
Between Models and Reality
mayunak
3
260
Rails Girls Zürich Keynote
gr2m
96
14k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.8k
Deep Space Network (abreviated)
tonyrice
0
110
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
170
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.5k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
760
Context Engineering - Making Every Token Count
addyosmani
9
800
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
710
What does AI have to do with Human Rights?
axbom
PRO
1
2.1k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.9k
Transcript
Empowering your React application with Flow type system Olena Sovyn
@frontendgirl
@frontendgirl
None
Why?
Benefits 1. No unused properties 2. Improved refactoring experience 3.
Documentation in place @frontendgirl
How?
None
None
What are the rules?
1. Be as exact as possible @frontendgirl
1. Be as exact as possible No error Error @frontendgirl
2. Spot “black holes” Black holes are functions return values
of which have type any, even though their types can be more specific based on the function internal logic
2. Spot “black holes” . flowconfig No error eslint-plugin-flowtype @frontendgirl
3. Use meaningful type names @frontendgirl
Let’s do our codebases automagically better! 1. Be as exact
as possible 2. Spot “black holes” 3. Meaningful type names Check also: What? How? Why? 1. No unused properties 2. Improved refactoring 3. Documentation in place find and follow simple rules @frontendgirl http://frontendgirl.com/flow-best-practices/