Skip to content

Commit c945868

Browse files
authoredMar 27, 2021
Remove unused useState call in getting-started.md example (#1702)
1 parent 07365ee commit c945868

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎docs/introduction/getting-started.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ React Redux provides a pair of custom React hooks that allow your React componen
7070
`useSelector` reads a value from the store state and subscribes to updates, while `useDispatch` returns the store's `dispatch` method to let you dispatch actions.
7171

7272
```js
73-
import React, { useState } from 'react'
73+
import React from 'react'
7474
import { useSelector, useDispatch } from 'react-redux'
7575
import {
7676
decrement,
@@ -84,7 +84,6 @@ import styles from './Counter.module.css'
8484
export function Counter() {
8585
const count = useSelector(selectCount)
8686
const dispatch = useDispatch()
87-
const [incrementAmount, setIncrementAmount] = useState('2')
8887

8988
return (
9089
<div>

0 commit comments

Comments
 (0)
Please sign in to comment.