-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can this be done with vanilla React? #36
Comments
A compile-step advantage I see is being able to convert |
Actually there are a couple of projects which realize the conditional part as React component. But they are all confronted with the following problem:
The code inside the Read also Why Transform. This reason should probably be made more prominent, like putting it into the intro section. So let's keep this issue open until it is better documented. |
Pros
Cons
|
Closing in favor of #39 |
Maybe it's possible to create If, For, etc, components in React, without needing to extend JSX? Foe example,
Then the
For
component would see thie child, and clone it for each item passed in to the items prop. It'd work without JSX. I can imagine the code to make that happen.What are the pros/cons of introducing a compile step versus runtime components?
The text was updated successfully, but these errors were encountered: