banshee icon indicating copy to clipboard operation
banshee copied to clipboard

Use JSX

Open adi-works opened this issue 7 years ago • 2 comments

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

adi-works avatar Jan 01 '19 21:01 adi-works

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.

dillonchanis avatar Jan 03 '19 12:01 dillonchanis

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.

adi-works avatar Jan 03 '19 14:01 adi-works