Skip to content

Commit ec41b03

Browse files
committed
Update readme
1 parent cc8d5ce commit ec41b03

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ Dispatch notification actions from any other component:
8080

8181
```
8282
import React, {PropTypes} from 'react';
83-
import {connect} from 'react-redux';
8483
import ReactDOM from 'react-dom';
8584
8685
import Notifications from 'react-notification-system-redux';
@@ -114,14 +113,14 @@ class OtherComponent extends React.Component {
114113
render() {
115114
const {notifications} = this.props;
116115
117-
return (
118-
<div>
116+
return (
117+
<div>
119118
<button onClick={this.handleClick}>
120119
Spawn some notifications!!!
121120
</button>
122121
</div>
123-
);
124-
}
122+
);
123+
}
125124
}
126125
127126
OtherComponent.contextTypes = {

0 commit comments

Comments
 (0)