dragonwong / blog

a blog based on github page
dragonwong.github.io/blog/
9 stars 4 forks source link

Why I Not Use Flow? #5

Open dragonwong opened 6 years ago

dragonwong commented 6 years ago

1

The practice is so less, such as inherit

In propTypes, it is easy:

ComponentA.propTypes = {
  someProp: ComponentB.propTypes.someProp,
};

But I just don't know how to write with flow.

2

Flow makes my code look like shattered.


Flow as Replacement for PropTypes Flow Type Cheat Sheet