DEV Community

Discussion on: Notes on TypeScript: React and Generics

Collapse
 
leoyli profile image
Leo Y. Li

Would suggest to change JSX.Element to React.ReactNode since it's less magical and it can be future safe.