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
React Firebase requires **React 0.14 and Firebase 3 or later.**
@@ -21,11 +45,11 @@ It does not modify the component class passed to it. Instead, it *returns* a new
21
45
22
46
#### Arguments
23
47
24
-
*[`mapFirebaseToProps(props, ref, firebaseApp): subscriptions`]\(*Object or Function*): Its result, or the argument itself must be a plain object. Each value must either be a path to a location in your database, a query object or a function. If you omit it, the default implementation just injects`firebaseApp`into your component’s props.
48
+
*[`mapFirebaseToProps(props, ref, firebaseApp): subscriptions`]\(*Object or Function*): Its result, or the argument itself must be a plain object. Each value must either be a path to a location in your database, a query object or a function. If you omit it, the default implementation just passes`firebaseApp`as a prop to your component.
25
49
26
50
#### Returns
27
51
28
-
A React component class that injects subscriptions and actions into your component according to the specified options.
52
+
A React component class that passes subscriptions and actions as props to your component according to the specified options.
29
53
30
54
##### Static Properties
31
55
@@ -35,7 +59,7 @@ A React component class that injects subscriptions and actions into your compone
35
59
36
60
> Runnable examples can be found in the [examples folder](examples/).
37
61
38
-
##### Inject`todos`
62
+
##### Pass`todos` as a prop
39
63
40
64
> Note: The value of `todos` is analogous to https://my-firebase.firebaseio.com/todos.
41
65
@@ -47,7 +71,7 @@ const mapFirebaseToProps = {
47
71
exportdefaultconnect(mapFirebaseToProps)(TodoApp)
48
72
```
49
73
50
-
##### Inject`todos` and a function that adds a new todo (`addTodo`)
74
+
##### Pass`todos` and a function that adds a new todo (`addTodo`) as props
0 commit comments