Skip to content
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

Use JSX #10

Open
adi518 opened this issue Jan 1, 2019 · 2 comments
Open

Use JSX #10

adi518 opened this issue Jan 1, 2019 · 2 comments

Comments

@adi518
Copy link

adi518 commented Jan 1, 2019

You can use JSX and save yourself the overhead of using the unreadable createElement aka h syntax.

@dillonchanis
Copy link
Collaborator

I've been holding off on updating/working on this library until 2.6 arrives. It should be shipping with a feature similar to React's cloneElement function which should clear up much of the logic in some of the components (like the Tabs).

I figured JSX was overkill when I first started this project and I'm very comfortable with createElement syntax but if it's causing issues I'd like to hear other people's opinions as well. Maybe a rewrite could be possible in a future update.

@adi518
Copy link
Author

adi518 commented Jan 3, 2019

I tried it all and nowadays I try to refrain from createElement as much as possible. Mostly for better developer experience, it doesn't create issues other than that imo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants