Stricter JSX?
Hey peeps,
I recently upgraded to 1.7.0 and seems like there is new stricter JSX.
I read the CHANGELOG and understand the issue a bit, i.e. removing function form from JSX.Element.
How ever my code (especially in test) use function form quite a bit, like this.
What should I do make it works without changing too much code?
Thanks!
4 Replies
just IIFE it or wrap it with
untrack
(most desirable) if you just want to inlineAh yeah cool, I didn't think about IIFE, as about
untrack
I guess all reactive vars inside the function will be disabled?
While IIFE still retain reactiveness?yep, yep
In this case, you could also use