← Emails
Subject:
React.ReactNode vs JSX.Element
React.ReactNode vs JSX.Element
Hey there,
When the TypeScript team started work on supporting React, JSX was the big stumbling block. Its syntax doesn't exist in JavaScript, so they had to build it into the compiler.
They came up with the idea for .tsx files, the jsx option in tsconfig.json, and suddenly, JSX was supported. But there was an interesting unanswered question: what type should this function infer as?
​Unsubscribe from Total TypeScript emails12333 Sowden Rd, Ste. B, PMB #97429, Houston, TX 77080

Share this TypeScript Newsletter with your friends