jsx-control-statements icon indicating copy to clipboard operation
jsx-control-statements copied to clipboard

Undefined is not a function with new JSX transform with react 17

Open romanlex opened this issue 4 years ago • 3 comments

I have a multiple errors when trying use several react nodes inside overwise or if block image

All work properly If I wrap this nodes to Fragment image

romanlex avatar Mar 09 '21 13:03 romanlex

same happens to me!

jailsonpaca avatar Apr 17 '21 13:04 jailsonpaca

I solve now with the <Choose> as parent, I forgot to put as parent of <When>

jailsonpaca avatar Apr 17 '21 14:04 jailsonpaca

I don't think this has anything to do with this library: It all depends on what you have as surrounding code. Are you directly returning the Choose block? Would it also work if you put the fragment around the Choose block?

texttechne avatar Oct 06 '21 18:10 texttechne