Skip to content

Commit

Permalink
Remove unused useState call in getting-started.md example (#1702)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsynnott authored Mar 27, 2021
1 parent 07365ee commit c945868
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/introduction/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ React Redux provides a pair of custom React hooks that allow your React componen
`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.

```js
import React, { useState } from 'react'
import React from 'react'
import { useSelector, useDispatch } from 'react-redux'
import {
decrement,
Expand All @@ -84,7 +84,6 @@ import styles from './Counter.module.css'
export function Counter() {
const count = useSelector(selectCount)
const dispatch = useDispatch()
const [incrementAmount, setIncrementAmount] = useState('2')

return (
<div>
Expand Down

0 comments on commit c945868

Please sign in to comment.