Typing self-returning proxy
How would I type this? The props would be
JSX.IntrinsicElements["div"]
but I'm unsure how to type it with chaining as well as calling it div().className("p-4")()
3 Replies
lfg
Nice
in case anyone cares, here it is but generic and with the prop actually typed