News for hackers. Stuff that matters.
Re:Modern Front-end in Rails by colinsidoti on Friday December 08, 2017 @10:52AM (#15879512)
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.

Re:Modern Front-end in Rails by swanson on Friday December 08, 2017 @03:25PM (#15881725)
I 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.