5 reasons YOU NEED to use view_component

5 reasons YOU NEED to use view_component

Rapid Ruby

2 года назад

682 Просмотров

A quick rundown of the main reasons I believe YOU NEED to use view_component in your Ruby on Rails projects!

For a more hands-on approach to setting up view component, check out this video:
https://www.youtube.com/watch?v=zaovY9dqvXk
Or go straight to the view component docs:
https://viewcomponent.org/guide/getting-started.html

Also, if you want to check out my in-depth video on Hotwire modals:
https://www.youtube.com/watch?v=WK16FeBfbxI

Chapters:
0:00 Intro
0:15 Tip 1: Thinking in components
0:50 Tip 2: Slots
1:18 Tip 3: Performance
1:40 Tip 4: Documentation
1:59 Tip 5: Testing in isolation
2:13 Wrapping up...

---

Has this video helped you out? Consider buying me a coffee to say thanks and support future content like this, thanks!
https://app.payhere.co/rapid-ruby/buy-me-a-coffee-aa4618e4-45d1-4727-81b9-2d081449d61d

You can also find more content like this, including premium courses and exclusive community and mentorship to help you level-up! Head over to https://rapidruby.com and use the code RRYOUTUBE for a discount!

Тэги:

#Rails #Ruby_on_Rails #Web_development #Rails_screencasts #learn_ruby_on_rails #Rails_screencast #rails_view_components #rails_view_component #view_component_rails
Ссылки и html тэги не поддерживаются


Комментарии:

@siyaram2855
@siyaram2855 - 19.07.2022 17:40

Awesome Video. Thank you for sharing.
btw, Which theme and font are you using?

Ответить
@jacquelinemarcella3370
@jacquelinemarcella3370 - 08.06.2022 10:55

ᴘʀᴏᴍᴏsᴍ

Ответить
@dmitriyosin8528
@dmitriyosin8528 - 29.05.2022 23:10

view_component it’s so so so cool) But when your project half code wrapped in x-template, that’s nightmare(

Ответить
@TeenaCode
@TeenaCode - 23.05.2022 05:01

Hey Pete, great video... I'm coming from a Laravel background, but I enjoy watching your videos....
I plan to build something with Rails soon, and you're doing a great job introducing me to rails.

Kudos!

Ответить