4 ms·
> 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
by meesterdude 9y ago
> 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?
- cies 9y agoYes 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).
- mmontoya 9y agoThe best approach is to let that Webpack handle SCSS/JS but still you can create most of the site with old good HAML.
- jemminger2 9y agoIt's even easier to sprinkle with Vue.js