Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jhudson8/react-backbone
backbone-aware mixins for react and a whole lot more
https://github.com/jhudson8/react-backbone
Last synced: 19 days ago
JSON representation
backbone-aware mixins for react and a whole lot more
- Host: GitHub
- URL: https://github.com/jhudson8/react-backbone
- Owner: jhudson8
- License: mit
- Created: 2014-05-09T14:17:24.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-26T03:29:05.000Z (over 9 years ago)
- Last Synced: 2024-10-03T08:18:28.887Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.93 MB
- Stars: 132
- Watchers: 8
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-react-cn - react-backbone - Backbone-aware mixins for react (Uncategorized / Uncategorized)
- awesome-react-components-all - react-backbone - Backbone-aware mixins for react and a whole lot more. (Uncategorized / Uncategorized)
- awesome-react-components - react-backbone - Backbone-aware mixins for react and a whole lot more. (Utilities / Framework bindings / integrations)
- awesome-react - react-backbone - Backbone-aware mixins for react
- awesome-learning-resources - react-backbone - Backbone-aware mixins for react (Uncategorized / Uncategorized)
- awesome-list - react-backbone - Backbone-aware mixins for react and a whole lot more. (Utilities / Framework bindings / integrations)
- awesome-react-components - react-backbone - Backbone-aware mixins for react and a whole lot more. (Utilities / Framework bindings / integrations)
- awesome-react-components - react-backbone - Backbone-aware mixins for react and a whole lot more. (Utilities / Framework bindings / integrations)
- awesome-react-components - react-backbone - Backbone-aware mixins for react and a whole lot more. (Utilities / Framework bindings / integrations)
- fucking-awesome-react-components - react-backbone - Backbone-aware mixins for react and a whole lot more. (Utilities / Framework bindings / integrations)
- awesome-react - react-backbone - backbone-aware mixins for react and a whole lot more (React [🔝](#readme))
README
react-backbone
==============
Give [Backbone](http://backbonejs.org/) awareness to your [React](http://facebook.github.io/react/) components and so much more.* give Backbone.Model / Backbone.Collection awareness to your React components
* mixins for updating on model change events, be aware of model xhr activity and model validation events and more
* add Backbone.View like declaritive events to your React components
* add dependency management to your React mixins
* use Backbone.Model-aware input components
* includes managed event bindings which will clean up when the React component is unmountedThis project indludes/depends on the following other projects
* [jhudson8/react-mixin-manager](https://github.com/jhudson8/react-mixin-manager)
* [jhudson8/react-events](https://github.com/jhudson8/react-events)
* [jhudson8/backbone-xhr-events](https://github.com/jhudson8/backbone-xhr-events)## Common Examples
```
React.createClass({
mixins: ['modelChangeAware'],render: function() {
// will be called any time this.props.model is changed
}
});
``````
React.createClass({
mixins: ['modelXHRAware'],render: function() {
// this.state.loading will be truthy during any XHR activity initiated by this.props.model
}
});
``````
React.createClass({
mixins: ['modelEvents'],events: {
'model:foo': 'onFoo',
'*throttle(300)->model:foo': 'onThrottledFoo'
''
},onFoo: function() {
will be executed when this.props.model triggers the "foo" event
},onThrottledFoo: function() {
will be executed and throttled (300ms) when this.props.model triggers the "foo" event
},
});
```## Docs
[View the installation and API docs](http://jhudson8.github.io/fancydocs/index.html#project/jhudson8/react-backbone)
## Tutorials
* [Handling model/collection changes and XHR loading indicators](https://github.com/jhudson8/react-backbone/tree/master/tutorials/collection-binding)
* [Forms validation and input field binding](https://github.com/jhudson8/react-backbone/tree/master/tutorials/forms)
* [Using managed events and mixin dependencies to create a responsive component](https://github.com/jhudson8/react-backbone/tree/master/tutorials/responsive-design)
* [Custom event handlers and event driven applications](https://github.com/jhudson8/react-backbone/blob/master/tutorials/event-driven-app)