Skip to content

Commit cf97f50

Browse files
committed
Tweak remaining JS highlighting
1 parent c25baf3 commit cf97f50

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

auth/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ React Firebase Hooks provides a convenience listener for Firebase Auth's auth st
44

55
All hooks can be imported from `react-firebase-hooks/auth`, e.g.
66

7-
```
7+
```js
88
import { useAuthState } from 'react-firebase-hooks/auth';
99
```
1010

@@ -14,7 +14,7 @@ List of Auth hooks:
1414

1515
### useAuthState
1616

17-
```
17+
```js
1818
const [user, loading, error] = useAuthState(auth);
1919
```
2020

database/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ to give a complete lifecycle for loading and listening to the Realtime Database.
88

99
All hooks can be imported from `react-firebase-hooks/database`, e.g.
1010

11-
```
11+
```js
1212
import { useList } from 'react-firebase-hooks/database';
1313
```
1414

@@ -22,7 +22,7 @@ List of Realtime Database hooks:
2222

2323
### useList
2424

25-
```
25+
```js
2626
const [snapshots, loading, error] = useList(reference);
2727
```
2828

@@ -69,7 +69,7 @@ const DatabaseList = () => {
6969

7070
### useListKeys
7171

72-
```
72+
```js
7373
const [keys, loading, error] = useListKeys(reference);
7474
```
7575

@@ -87,8 +87,8 @@ Returns:
8787

8888
### useListVals
8989

90-
```
91-
const [values, loading, error] = useListVals<T>(reference, options);
90+
```js
91+
const [values, loading, error] = useListVals < T > (reference, options);
9292
```
9393

9494
As `useList`, but this hook extracts a typed list of the `firebase.database.DataSnapshot.val()` values, rather than the the
@@ -108,7 +108,7 @@ Returns:
108108

109109
### useObject
110110

111-
```
111+
```js
112112
const [snapshot, loading, error] = useObject(reference);
113113
```
114114

@@ -146,8 +146,8 @@ const DatabaseValue = () => {
146146

147147
### useObjectVal
148148

149-
```
150-
const [value, loading, error] = useObjectVal<T>(reference, options);
149+
```js
150+
const [value, loading, error] = useObjectVal < T > (reference, options);
151151
```
152152

153153
As `useObject`, but this hook returns the typed contents of `firebase.database.DataSnapshot.val()`, rather than the the

storage/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ to give a complete lifecycle for loading from Cloud Storage.
88

99
All hooks can be imported from `react-firebase-hooks/storage`, e.g.
1010

11-
```
11+
```js
1212
import { useDownloadURL } from 'react-firebase-hooks/storage';
1313
```
1414

@@ -18,7 +18,7 @@ List of Cloud Storage hooks:
1818

1919
### useDownloadURL
2020

21-
```
21+
```js
2222
const [downloadUrl, loading, error] = useDownloadURL(reference);
2323
```
2424

0 commit comments

Comments
 (0)