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
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ A set of reusable [React Hooks](https://reactjs.org/docs/hooks-intro.html) for [
14
14
React Firebase Hooks requires **React 16.8.0 or later** and **Firebase v5.0.0 or later**.
15
15
16
16
```
17
-
npm install --save react-firebase-hooks@1.2.1
17
+
npm install --save react-firebase-hooks
18
18
```
19
19
20
20
This assumes that you’re using the [npm](https://npmjs.com) package manager with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.
@@ -25,6 +25,12 @@ There has been a **lot** of hype around React Hooks, but this hype merely reflec
25
25
26
26
This library explores how React Hooks can work to make integration with Firebase even more straightforward than it already is. It takes inspiration for naming from RxFire and is based on an internal library that we had been using in a number of apps prior to the release of React Hooks. The implementation with hooks is 10x simpler than our previous implementation.
27
27
28
+
## Upgrading from v1 to v2
29
+
30
+
After feedback on the initial release of React Firebase Hooks, we opted to change from `Object` to `Array` returns to allow for easier composition of hooks in v2.
31
+
32
+
To upgrade your project from v1 to v2 check out the [Release Notes](https://github.com/CSFrequency/react-firebase-hooks/releases/tag/v2.0.0) which have full details of everything that needs to be changed.
0 commit comments