You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ It allows you:
11
11
Thus, no refactoring of your application is required. You can start writing UI with React immediately replacing your Backbone Views one-by-one, while keeping your existing models.
12
12
13
13
This extension works with raw Backbone. However, in order to take full advantage of React/Backbone
14
-
architecture you are encouraged to upgrade to Backbone.NestedTypes. It will give you following
14
+
architecture you are encouraged to upgrade to `Backbone.NestedTypes`. It will give you following
15
15
features to help managing complex application state:
16
16
17
17
- Proper nested models and collections implementation with deep changes detection. React components will
@@ -25,12 +25,12 @@ and
25
25
https://github.com/Volicon/backbone.nestedTypes
26
26
27
27
# Usage
28
-
It's packed as single UMD, thus grab the module which is appropriate for you. So far, there are two of them, one for raw backbone, and one for backbone.nestedTypes.
28
+
It's packed as single UMD, thus grab the module which is appropriate for you. So far, there are two of them, one for raw backbone, and one for `backbone.nestedTypes`.
29
29
30
30
First one depends on `react` and `backbone`, so if you're using Chaplin or Marionette you will
31
31
probably need to pass appropriate module instead of `backbone`. Don't hesitate to replace module name in the beginning of the file, or use raw factory function from `src/glue.js`.
32
32
33
-
If you're using NestedTypes, you need NestedTypes to require appropriate framework. Report a bug if something goes wrong, we like when someone share our passion for technology and quite fast in response.
33
+
If you're using `NestedTypes`, you need `NestedTypes` to require appropriate framework. Report a bug if something goes wrong, we like when someone share our passion for technology and quite fast in response.
34
34
35
35
# Features
36
36
## Use React components as Backbone View
@@ -110,7 +110,7 @@ var MyComponent = React.createClass({
110
110
- New Model definition will be created, using `attributes` as Model.defaults.
111
111
- If Model property is specified, it will be used as base model and extended.
112
112
-`attributes` property from mixins will be properly merged.
113
-
- if you're using Backbone.NestedTypes models, it's far superior to react state in every aspect. It handles updates much faster, it detects nested elements changes, and it has type specs for state elements in a way like react's propTypes.
113
+
- if you're using `Backbone.NestedTypes` models, it's far superior to react state in every aspect. It handles updates much faster, it detects nested elements changes, and it has type specs for state elements in a way like react's `propTypes`.
114
114
115
115
## Passing Backbone objects as React components props
0 commit comments