Equivalent for Django?
Ruby on Rails: View Components, Storybook and Tailwind - a match made in heaven?
21–30 of 44 posts
Re: Ruby on Rails: View Components, Storybook and Tailwind - a match made in heaven?
#22I've used view component heavily over the last year or so, it's an amazing library. It perfectly fits the gap between helpers and partials and really does help keep things well organised. I maintain a library of components and being able to spin up a new project and hit the ground running makes for a great experience. I'm looking at documenting with lookbook instead of storybook, but both look decent. https://github.…
The more stuff like this I see (Rails view components and HTML over the wire) the more I realize how, for lack of a better word, "advanced" ASP.Net MVC was over 10 years ago...
Re: Ruby on Rails: View Components, Storybook and Tailwind - a match made in heaven?
#23I've used view component heavily over the last year or so, it's an amazing library. It perfectly fits the gap between helpers and partials and really does help keep things well organised. I maintain a library of components and being able to spin up a new project and hit the ground running makes for a great experience. I'm looking at documenting with lookbook instead of storybook, but both look decent. https://github.…
The more stuff like this I see (Rails view components and HTML over the wire) the more I realize how, for lack of a better word, "advanced" ASP.Net MVC was over 10 years ago...
Re: Ruby on Rails: View Components, Storybook and Tailwind - a match made in heaven?
#24Earlier quoted context omitted.
The more stuff like this I see (Rails view components and HTML over the wire) the more I realize how, for lack of a better word, "advanced" ASP.Net MVC was over 10 years ago...
Yeah, that's undoubtedly the case. Rails appears to have (Apple-style) taken some cues from elsewhere and made the user experience actually nice.
Re: Ruby on Rails: View Components, Storybook and Tailwind - a match made in heaven?
#25Equivalent for Django?
Maybe django-components, if you need something a bit higher level than plain include or inclusion tags: https://github.com/EmilStenstrom/django-components/
Re: Ruby on Rails: View Components, Storybook and Tailwind - a match made in heaven?
#26Re: Ruby on Rails: View Components, Storybook and Tailwind - a match made in heaven?
#27Equivalent for Django?
Re: Ruby on Rails: View Components, Storybook and Tailwind - a match made in heaven?
#28Equivalent for Django?
Maybe django-components, if you need something a bit higher level than plain include or inclusion tags: https://github.com/EmilStenstrom/django-components/
Re: Ruby on Rails: View Components, Storybook and Tailwind - a match made in heaven?
#29Probably not. Pretty sure God codes in LISP.
Re: Ruby on Rails: View Components, Storybook and Tailwind - a match made in heaven?
#30Earlier quoted context omitted.
Maybe django-components, if you need something a bit higher level than plain include or inclusion tags: https://github.com/EmilStenstrom/django-components/
Is it worth adopting? I hesitate adding more dependencies to projects unless it provides a LOT of value.
Imagine you have a dropdown, or a list of items, etc which is composed of more than one single markup element, such as a couple divs, an ul and a li for each element. Wrapping all of this into a component helps reusing this parameterized component in as many places as you need. You might think why not just use "includes"? Well, includes are great for very simple use cases, but for example, you cannot pass a "body" of html to them (imagine you want a "ListWrapper" component, etc) among other shortcomings. Thinking in components makes things a lot easier in my opinion.