You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Phlex::Kit, we can create components without using "render" and "new". This approach will make the components look much better and improve the developer experience.
I was discussing this with @joeldrapper on this PR, and my suggestion is to aim for this syntax:
PhlexUI::Accordiondo |accordion|
accordion.itemdoaccordion.triggerdodivdop{"What is PhlexUI?"}endendaccordion.contentdop{"PhlexUI is a UI component library for Ruby devs who want to build better, faster."}endendend
instead of:
renderPhlexUI::Accordion.newdorenderPhlexUI::Accordion::Item.newdorenderPhlexUI::Accordion::Trigger.newdodivdop{"What is PhlexUI?"}endendrenderPhlexUI::Content.newdop{"PhlexUI is a UI component library for Ruby devs who want to build better, faster."}endendend
I will be able to open PRs to support Phlex::Kit for all the current components if we decide to proceed
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
With Phlex::Kit, we can create components without using "render" and "new". This approach will make the components look much better and improve the developer experience.
I was discussing this with @joeldrapper on this PR, and my suggestion is to aim for this syntax:
instead of:
I will be able to open PRs to support Phlex::Kit for all the current components if we decide to proceed
Beta Was this translation helpful? Give feedback.
All reactions