I'm using TypeScript in my Vite React project. I'm having problems to build my project because of this error, says that the name
property doesn't exist. Someone know how I can fix that?
Type '{ children: Element; name: string; className: string; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
Property 'name' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
The code
<div
name='contact'
className='w-full h-screen bg-dark text-white flex justify-center items-center p-4'
>
...
</div>