3 ms·
I have not, no. When you say “componentizing”, what does that entail? Is it the ViewComponents gem? If someone reading this has experience with both TS+React a
by sickcodebruh 3y ago
I have not, no. When you say “componentizing”, what does that entail? Is it the ViewComponents gem?
If someone reading this has experience with both TS+React and modern Hotwire apps, you’d do the world a service by writing a blog about modern Rails views for the experienced React developer.
- aledalgrande 3y agoYeah what I'm suggesting is a React-y modular view codebase. You can use ViewComponents but I quickly found it was too limited for me and I didn't like to have many files for a single component. I just use Rails partials, the performance hit for my app is none. I also wrote a local VSCode plugin for snippets autocomplete so I can go faster. Also sprinkle some (rare) Stimulus and Turbo streams/frames. The one thing you're gonna be missing is typing, Sorbet does not work in views.