property 'onsubmit' does not exist on type

Then you would call your component as follows: I agree that the error message isn't very helpful, but if you read it completely, it'll tell you what's missing in your component. Looking for job perks? Content Discovery initiative April 13 update: Related questions using a Review our technical responses for the 2023 Developer Survey, Typescript + React/Redux: Property "XXX" does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes, Property 'value' does not exist on type 'Readonly<{}>', Type '{}' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes, Property does not exist on type 'IntrinsicAttributes & ', TypeScript error: Property 'X' does not exist on type 'Window', Property 'isOpen' does not exist on type 'IntrinsicAttributes. In addition to @iffy and @RyanCavanaugh global namespace solution, you can declare your custom element type like this: In order to get better type/property checking and code completion on your custom tags, @TheAfterman Can you help me modify your solution to work with components such as

property 'onsubmit' does not exist on type