← Emails
What is JSX.IntrinsicElements?
What is JSX.IntrinsicElements?
Hey there,
Reading through the React types from DefinitelyTyped repo is a great way to gain insight into how to best use TypeScript with the library.
One of the largest types you'll find in the global scope is JSX.IntrinsicElements.
Just like how you define the supported props for your component, JSX.IntrinsicElements is React's way of defining the props for all of the native HTML elements.
To demonstrate how IntrinsicElements works, I've written an article that follows the pattern of defining an interface on the global namespace.
​Unsubscribe from Total TypeScript emails12333 Sowden Rd, Ste. B, PMB #97429, Houston, TX 77080

Share this TypeScript Newsletter with your friends