ParseReact
ParseReact copied to clipboard
Normal example ParseReact and ES6
Pls can u give us good example with observe() in es6 pls?
http://blog.beach.io/blog/the-future-of-web-apps-hammer-reactjs-parse-forge
Yes, it good example with Es 2015, but in Es 6 using ParseReact.Component not work. And now I need ecmascript example with work code. I use webpack + react
var Parse = require('parse').Parse;
var ParseReact = require('parse-react');
var React = require('react');
var ParseComponent = ParseReact.Component(React);
export default class TodoList extends ParseComponent {
observe(props, state) {
return {
items: new Parse.Query('TodoItem').ascending('createdAt')
};
}
}
The ToDo app in demos folder is a good example of ParseReact + ES6 https://github.com/ParsePlatform/ParseReact/tree/master/demos/todo