Replies: 1 comment
-
This isn't a good idea. It makes it look like this is JSX when it's not, and it makes parsing much more complicated. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In order to reduce lines of code, I am proposing a shorthand like other frameworks/libraries:
in addition to what is currently available:
Just having several optional props, you end up with a very large component due to
if
blocks taking 3 lines when they can take 1.Example:
New Approach:
Beta Was this translation helpful? Give feedback.
All reactions