From 6bc0815930ce998fbe2a3e80d9e5d6295db240f8 Mon Sep 17 00:00:00 2001 From: Max Synnott Date: Sat, 27 Mar 2021 11:49:44 +0100 Subject: [PATCH] Update getting-started.md --- docs/introduction/getting-started.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/introduction/getting-started.md b/docs/introduction/getting-started.md index 9508ece55..82fc4be36 100644 --- a/docs/introduction/getting-started.md +++ b/docs/introduction/getting-started.md @@ -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, @@ -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 (