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 type system
Search
Olena Sovyn
December 06, 2019
Technology
0
34
Empowering your React application with Flow type system
Olena Sovyn
December 06, 2019
Tweet
Share
More Decks by Olena Sovyn
See All by Olena Sovyn
Hidden Gems in Code Reviews
kiwka
0
36
Testing, tEstIng, TeStInG or how to test React apps with generated input data
kiwka
1
520
Building Webflow Ecommerce in 3 stories
kiwka
0
62
Building a Chrome Extension with React
kiwka
0
500
Understanding Recompose through examples
kiwka
0
220
On the way to making React components more reusable
kiwka
2
230
Using Facade pattern with JSX
kiwka
4
300
Other Decks in Technology
See All in Technology
Algyan イベント振り返り
linyixian
0
210
Cloud Native Java with Spring Boot (CNCF Aarhus, April 2024)
thomasvitale
1
160
生産性向上チームの紹介
cybozuinsideout
PRO
1
860
推しは推せるときに推せ! プロダクトにフィードバックしていこう
nakasho
0
280
マルチアカウント環境への発見的統制の導入
ch1aki
1
1.3k
アクセシビリティを考慮したUI/CSSフレームワーク・ライブラリ選定
yajihum
2
1k
日本におけるデータエンジニアリングのこれまでとこれから
foursue
16
4.1k
継続的な改善 x ⾮連続的な進化
sansantech
PRO
3
130
開発生産性大幅アップ!Postman VS Code拡張機能
nagix
2
360
コードを書く隙間を見つけて生きていく技術/Findy 思考の現在地
fujiwara3
27
5.8k
Next'24 事例セッションの紹介とクラウド資格を活用したキャリア形成について語りMuscle
yasumuusan
1
430
Janus
bkuhlmann
1
490
Featured
See All Featured
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
116
18k
Designing on Purpose - Digital PM Summit 2013
jponch
110
6.5k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
274
13k
Music & Morning Musume
bryan
41
5.6k
Bootstrapping a Software Product
garrettdimon
PRO
302
110k
Code Review Best Practice
trishagee
55
15k
Documentation Writing (for coders)
carmenintech
60
3.9k
Visualization
eitanlees
136
14k
Thoughts on Productivity
jonyablonski
58
3.8k
The Art of Programming - Codeland 2020
erikaheidi
42
12k
Six Lessons from altMBA
skipperchong
21
3k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
6
1.5k
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/