DEV Community

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

Collapse
 
alfredosalzillo profile image
Alfredo Salzillo

For the sake of reusability the FieldType enum can be moved to a types/field or a types/components.

For the sake of the reader too. My eyes are bleeding.

Nice article by the way 😊

Collapse
 
zenobio profile image
Zenobio

Dunno if i've made some english error or if you're reffering to the TS type boilerplate.

Also, thank you 😊.