简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM