Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lake2 committed Mar 18, 2020
1 parent 8e9e04b commit 2d881c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ imdux推荐两种异步操作解决办法:
一个常见的滚动翻页代码如下:

```js
// news.action.js
// 定义一个名称为news的action,并使用createStore初始化
import { createAction } from "imdux";

const initialState = {
Expand Down Expand Up @@ -290,7 +290,7 @@ export const news = createAction({ initialState, reducers });
```

```js
// app.js
// 使用Dispatch.news.addPage更新news.page,触发request异步操作
import * as React from "react";
import { useSelector } from "react-redux";

Expand Down

0 comments on commit 2d881c0

Please sign in to comment.