Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React, Ember-data

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'); }

like image 317
Costa Avatar asked Jun 11 '16 09:06

Costa


1 Answers

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:

  • redux-orm
  • TypeORM

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.

like image 81
ykaragol Avatar answered Sep 23 '22 04:09

ykaragol