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
0
42
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
44
Testing, tEstIng, TeStInG or how to test React apps with generated input data
kiwka
1
640
Building Webflow Ecommerce in 3 stories
kiwka
0
78
Building a Chrome Extension with React
kiwka
0
680
Understanding Recompose through examples
kiwka
0
380
On the way to making React components more reusable
kiwka
2
280
Using Facade pattern with JSX
kiwka
4
380
Other Decks in Technology
See All in Technology
Flutterアプリを⾃然⾔語で操作する
yukisakai1225
0
210
技術職じゃない私がVibe Codingで感じた、AGIが身近になる未来
blueb
0
110
メルカリにおけるデータアナリティクス AI エージェント「Socrates」と ADK 活用事例
na0
16
8.5k
Digitization部 紹介資料
sansan33
PRO
1
4.1k
Generational ZGCのメモリ運用改善 - その物理メモリ使用量、本当に正しい?
tabatad
1
300
Introduction to Bill One Development Engineer
sansan33
PRO
0
250
現場で役立つAPIデザイン
nagix
1
220
dbt Cloudの新機能を紹介!データエンジニアリングの民主化:GUIで操作、SQLで管理する新時代のdbt Cloud
sagara
0
170
Devin(Deep) Wiki/Searchの活用で変わる開発の世界観/devin-wiki-search-impact
tomoki10
0
160
Roo CodeとClaude Code比較してみた
pharma_x_tech
1
240
Kafka vs. Pulsar: Performance Evaluation by Petabyte-Scale Streaming Platform Providers
lycorptech_jp
PRO
1
350
バクラクのモノレポにおける AI Coding のための環境整備と {Roo,Claude} Code活用事例 / AI Coding in Bakuraku's Monorepo: Environment Setup & Case Studies with {Roo, Claude} Code
upamune
8
5.2k
Featured
See All Featured
The Art of Programming - Codeland 2020
erikaheidi
54
13k
Into the Great Unknown - MozCon
thekraken
39
1.8k
Optimizing for Happiness
mojombo
379
70k
Visualization
eitanlees
146
16k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
How to Ace a Technical Interview
jacobian
276
23k
Rebuilding a faster, lazier Slack
samanthasiow
81
9k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
14
1.5k
Measuring & Analyzing Core Web Vitals
bluesmoon
7
470
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
657
60k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.6k
The Cult of Friendly URLs
andyhume
79
6.4k
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/