anyone used
https://github.com/AlexGilleran/jsx-control-statements for control statement ?
ist work with enzime chai ?
This isn't a project-specific question: probably better to ask here for wider reach.
For what it's worth, I'd suggest avoiding control-flow logic in your JSX as far as possible. When you _do_ need to, it's generally preferable to use standard JS syntax (ternaries, functions, etc) to return the appropriate child.
That said, if you like really exploring the possibilities of JSX's declarative syntax, this guy is a great source of inspiration (check out the smalldots library).
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
This isn't a project-specific question: probably better to ask here for wider reach.
For what it's worth, I'd suggest avoiding control-flow logic in your JSX as far as possible. When you _do_ need to, it's generally preferable to use standard JS syntax (ternaries, functions, etc) to return the appropriate child.
That said, if you like really exploring the possibilities of JSX's declarative syntax, this guy is a great source of inspiration (check out the smalldots library).