Closed alexandernanberg closed 1 year ago
Fix ref types for React
E.g. this should be valid
function App() { const ref = useRef<SVGSVGElement | null>(null) return <Icon ref={ref} /> }
Also changes React.ComponentProps<'svg'> to React.SVGProps<SVGSVGElement> which is what React internally uses for <svg> elements
React.ComponentProps<'svg'>
React.SVGProps<SVGSVGElement>
<svg>
Thanks!
Fix ref types for React
E.g. this should be valid
Also changes
React.ComponentProps<'svg'>
toReact.SVGProps<SVGSVGElement>
which is what React internally uses for<svg>
elements