Skip to content

Commit 70d261f

Browse files
author
Nadim Tuhin
authored
updated readme for better syntax highlighting
turned ``` into ```js
1 parent 04ee9c4 commit 70d261f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ You can follow [this GitHub Issue](https://github.com/facebook/react/issues/2461
1717
Thanks to inspiration from [skiano/react-safe-render](https://github.com/skiano/react-safe-render/blob/feature/safe-methods/index.js).
1818

1919
# Usage with an es7 @decorator
20-
```
20+
```js
2121
import wrapReactLifecycleMethodsWithTryCatch from 'react-component-errors'
2222

2323
@wrapReactLifecycleMethodsWithTryCatch
@@ -33,7 +33,7 @@ class MyComponent extends React.Component {
3333

3434

3535
# Usage without a decorator
36-
```
36+
```js
3737
import wrapReactLifecycleMethodsWithTryCatch from 'react-component-errors'
3838

3939
class MyComponent extends React.Component {
@@ -49,7 +49,7 @@ wrapReactLifecycleMethodsWithTryCatch(MyComponent);
4949

5050
# Config
5151

52-
```
52+
```js
5353
import {config} from 'react-component-errors'
5454
```
5555

@@ -60,7 +60,7 @@ import {config} from 'react-component-errors'
6060

6161
You can see the below running [in a plnkr](http://plnkr.co/edit/VlYsps?p=preview) where we give the helper our own `errorHandler` which uses [Toastr](http://codeseven.github.io/toastr/) to display error messages.
6262

63-
```
63+
```js
6464
'use strict';
6565

6666
import React from 'react';

0 commit comments

Comments
 (0)