... read the whole story at medium.com.
1 + 1 = 2 but if you accidentally add
1 + "1" you will get
"11". To avoid such errors you can use Flow, TypeScript or check operand types in runtime. I will apply the last approach to the React source code.