Hacker News new | past | comments | ask | show | jobs | submit login

I think Vanilla Rails sprinkled with a bit of React can go a long way.

Not every part of an app needs the duplicity of state, or need to look dynamic.




> sprinkled with react

I can sprinkle in javascript for a normal rails app to add behavior - but i thought react required moving all rendering into it? are you able to "sprinkle" with react within otherwise normal html/css/js?


Yes you can. Not like jQuery where you use it to manipulate the DOM (as rendered from HTML generated on the server).

With React you basically let it manage one or more subtrees of the DOM; you let React do the rendering for that subtree at all times (possibly using React on the server to do pre-rendering).


It's even easier to sprinkle with Vue.js


The best approach is to let that Webpack handle SCSS/JS but still you can create most of the site with old good HAML.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: