10
votes

I use ember-data in my ember.js projects, now I learn react. My question is: what technics are used in react to achieve the same functionality as ember-data? I'd like to:

  1. have something like models
  2. if I've changed model in one place, changes are visible in other component
  3. have some model's methods like:

    fullName(){ return this.get('name')+' '+this.get('secondName'); }

1
Based upon my limited knowledge, React has nothing like ember data. - Gaurav
What does ember-data give you that you can't achieve using POJO and React? - Caltor

1 Answers

3
votes

ember-data is a library, that handles remote data retrieve/send operations. To handle those remote operations, ember-data provides models, adapters, serializers etc. Btw, ember-data is an implementation of JSON:API.

ember-data description from the README.md:

ember-data is a library for robustly managing data in applications built with Ember.js.

...

It provides many of the facilities you'd find in server-side ORMs like...

So, if you search it through google with "react orm", you can find some libraries, such as:

And if you visit JSON:API implementations page, you can find other libraries that implements the JSON:API and plays well with redux or react.