DEV Community

Discussion on: Union Types with Javascript

Collapse
 
napicella profile image
Nicola Apicella

Hi! Nice article and great job with the examples. In the react example I think the code turned out to be slightly more readable with the union types than it would be with a bunch of ifs.
Anyway, it s a good tool to have in a coder s toolbox. Thanks!

Collapse
 
avalander profile image
Avalander

Thanks for your comments!