jsx-control-statements
jsx-control-statements copied to clipboard
Undefined is not a function with new JSX transform with react 17
I have a multiple errors when trying use several react nodes inside overwise or if block

All work properly If I wrap this nodes to Fragment

same happens to me!
I solve now with the <Choose> as parent, I forgot to put as parent of <When>
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?