Skip to content

Commit 551392e

Browse files
committed
Small fixes including immutable@4.0.0-rc2
1 parent f0fa0cd commit 551392e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tutorial/05-redux-immutable-fetch.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ console.log(immutablePerson)
4444
*/
4545
```
4646

47-
- Run `yarn add immutable`
47+
- Run `yarn add immutable@4.0.0-rc.2`
4848

4949
## Redux
5050

@@ -129,7 +129,7 @@ Button.propTypes = {
129129
export default Button
130130
```
131131

132-
**Note**: You can see another case of destructuring with Flow annotations here. If `props` contains `handleClick`, instead of writing `const Button = (props) => { props.handleClick() }`, we write `const Button = ({ handleClick }: { handleClick: Function }) => { handleClick() }`. The syntax is a bit cumbersome but worth it.
132+
**Note**: You can see a case of Flow *type alias* here. We define the `Props` type before annotating our component's destructured `props` with it.
133133

134134
- Create a `src/client/component/message.jsx` file containing:
135135

@@ -545,7 +545,7 @@ In order to isolate the logic that is specific to `action/hello.js` we are going
545545
546546
- Run `yarn add --dev redux-mock-store fetch-mock`
547547
548-
- Create a `src/client/action/hello.test.js` containing:
548+
- Create a `src/client/action/hello.test.js` file containing:
549549
550550
```js
551551
import fetchMock from 'fetch-mock'

0 commit comments

Comments
 (0)