Skip to content

Commit 7a4a8e9

Browse files
author
Maxim Yaskevich
committed
Updated README.md
1 parent 74cac80 commit 7a4a8e9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ npm i --save react-redux-modal-provider
99

1010
## Usage
1111

12-
1. Add `<ModalProvider>` to your root component.
12+
#### 1. Add `<ModalProvider>` to your root component.
1313

1414
```jsx
1515
import ModalProvider from 'react-redux-modal-provider';
@@ -25,7 +25,7 @@ export default render(
2525
);
2626
```
2727

28-
2. Plug in Modal Provider reducer.
28+
#### 2. Plug in Modal Provider reducer.
2929

3030
```jsx
3131
import { reducer as modalProvider } from 'react-redux-modal-provider';
@@ -35,7 +35,7 @@ export default combineReducers({
3535
});
3636
```
3737

38-
3. Add modal creation code.
38+
#### 3. Add modal creation code.
3939

4040
```jsx
4141
import { connect } from 'react-redux';
@@ -58,7 +58,7 @@ const App = (props) => (
5858
export default connect(null, { showModal })(App);
5959
```
6060

61-
4. Handle modal closing.
61+
#### 4. Handle modal closing.
6262

6363
```jsx
6464
// myModal.jsx
@@ -83,7 +83,7 @@ export default (props) => (
8383

8484
1. You don't have to think about where your modal component should fit into component tree, because it doesn't really matter where to render a modal.
8585

86-
2. No need to `connect()` your modal component to Redux, unless you want it to be able to create create other modals itself.
86+
2. No need to `connect()` your modal component to Redux, unless you want it to be able to create other modals itself.
8787

8888
## Acknowledgements
8989
Thanks [@yesmeck](https://github.com/yesmeck), author of [`redux-modal`](https://github.com/yesmeck/redux-modal), for webpack config I borrowed.

0 commit comments

Comments
 (0)