Skip to content

Commit 1f487d9

Browse files
committed
Add formatting to code blocks in README
1 parent 07e6bd9 commit 1f487d9

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ time while active.
66

77
## Install
88

9-
Via [npm](https://npmjs.com/package/react-timer-wrapper):
10-
```
9+
Via [npm](https://npmjs.com/package/react-timer-wrapper)
10+
11+
```sh
1112
npm install --save react-timer-wrapper
1213
```
1314

14-
Via [Yarn](https://yarn.fyi/react-timer-wrapper):
15-
```
15+
Via [Yarn](https://yarn.fyi/react-timer-wrapper)
16+
17+
```sh
1618
yarn add react-timer-wrapper
1719
```
1820

@@ -41,7 +43,7 @@ completion. Or, you can use it to track the time that occurs while it’s active
4143

4244
#### Standalone
4345

44-
```
46+
```js
4547
import Timer from 'react-timer-wrapper';
4648

4749
...
@@ -84,7 +86,7 @@ import Timer from 'react-timer-wrapper';
8486

8587
#### With children
8688

87-
```
89+
```js
8890
import Timer from 'react-timer-wrapper';
8991
import CircleIndicator from 'react-indicators';
9092

0 commit comments

Comments
 (0)