jeudi 24 mars 2016

Using React and Ember in the same Rails project

I'm thinking about switching from an old Javascript framework to a more modern one. My backend is written in Ruby on Rails (v4.2). What is very appealing to me is the Two-way data binding of Ember. However, the web components and performance of React looks pretty cool as well. So my question is, has anyone tried to use the views of React, combined with the Ember models/controllers? Are there any projects out there that demonstrate that?

An example of this might be something like

var component = React.Component {


    getAllPosts(){
       // Get data from the Ember model
    }

    render() {
        return ( 
            // React html which uses getAllPosts
        )
    }

}

What's your thoughts on this? Thanks!




Aucun commentaire:

Enregistrer un commentaire