Chainable without () ?
Hi all,
I have this: which is gross because you need to invoke the return of each chainable prop-call in order to actually call createElement. Is there a way to chain createElement calls like I'm doing without having to curry like this?
6 Replies
what is this wizardry
It's using a proxy with custom getters to basically curry a prop object, where calling it calls createElement()
Ideally I'd do this without currying tho
I wonder if I could somehow instantiate the createElement call in
div()
and then just mutate it's props?so your desired API is just this without the ending invocations?
this ^?
yeah
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
JavaScript