DEV Community

Discussion on: Tagged Union in React.Js with TypeScript and how to respect your props.

Collapse
 
zenobio profile image
Zenobio • Edited

Considering the frontend spectre, ELM and ReasonML are both languages which have typed constraints built in.
As we know, that's not the case for JS which needs Typescript/Flow to help with typing but not in a really enforced way and it leads many devs to don't really try and understand how to handle those types in a way that will be more safe or even meaningful, IMO.

Not really a matter of "real | non-real", need to edit this part asap 😔.