First, let’s talk about what is Flow or FlowType…
From their official site –
From ReactJS’s site-
Seems fair 👌
If you already used Flow, then you know that in a few cases in your code, Flow is not happy though you think your code is fully okay and should not be modified to make Flow happy.
But as Flow is not happy with that code, the build will break. 😱
So, to bypass the Flow error, we have to add
$FlowFixMe before that specific line. 😐
And if you are working with a big codebase, then you probably need to add this thing a lot in a lot of places. 😞
Like, if we go to ReactJS GitHub repo and search for
$FlowFixMe in the whole repo, we will find a lot of them in the codebase.
I think, that
$FlowFixMe should be
Now, let’s talk about what Facebook is doing to make Flow better.
Actually, they are even removing Flow from their own projects and migrating their codebase to TypeScript.
One of the popular Facebook tools is JEST.
They used Flow on the Jest codebase. Now they have migrated and started using TypeScript.
So, as Facebook developers are also removing FlowType from their projects, what do you think about it?
Do you wanna use it for your projects or remove it?
Do you think they will make it better?
As I am trying to contribute contents on the Web, you can buy me a coffee for my hours spent on all of these ❤️😊🌸
I will provide some reference URLs for you guys to look more-
To see FlowFixMe search result in ReactJS reop, 👉 Click here
To see HackerNews Thread 👉 Click here