7 ms·
I may be mistaken, but I think the meat of this will be in post 2? It sounds like your taking React's render() and replacing it with ERB. But, how are you giv
by colinsidoti 9y ago
I may be mistaken, but I think the meat of this will be in post 2?
It sounds like your taking React's render() and replacing it with ERB. But, how are you giving the ERB file access to state and props?
I suppose if it's done well, this would make it easier for Rails devs to adopt single page apps. It sounds like you're abstracting away a lot of React and creating a Rails-ier API to it.
- swanson 9y agoI think the intention is to go the opposite way: instantiating React components in the ERB template and passing in state/props from the controller instance variables.