-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
RFC: Remove <If> #12
RFC: Remove <If> #12
Conversation
cc @manuelbieh - Presumably |
I believe some of the syntactic clarity
Traditional JS blocks are visually sparse and shift focus to their contents, while XML tag blocks are a bit more visually weighty and thus distracting. The only real drawback of guards ( |
Thanks for talking through it with me! React actually has built in support for not rendering I think understanding that boolean and I do think that simple uses of |
I think `<If>` and `<Else>` might be a distraction from the value of `<For>` and I'm considering remove it. They're also potentially helpful for clearer syntax compared to `{condition && <Node />}` but have some real drawbacks as well. Perhaps we should consider including them in a `react-conditionals` library?
Well said. I think the relatively small value vs |
I think
<If>
and<Else>
might be a distraction from the value of<For>
and I'm considering remove it. They're also potentially helpful for clearer syntax compared to{condition && <Node />}
but have some real drawbacks as well.Perhaps we should consider including them in a
react-conditionals
library?