The ...props should be added as an argument, as well as spread into the correct tag of the component. The type to add depends on the tag the ...props end up on (e.g. <div {...props}>..</div> -> HTMLDivElement, <button {...props}/> -> HTMLButtonElement)
Like here: https://github.com/kickstartDS/ds-agency/commit/8b55c947425ea7bdb6c5bdb54849896c52a876fb
The
...props
should be added as an argument, as well as spread into the correct tag of the component. The type to add depends on the tag the...props
end up on (e.g.<div {...props}>..</div>
->HTMLDivElement
,<button {...props}/>
->HTMLButtonElement
)Especially: