Skip to content

Commit 9555397

Browse files
authored
Update quick-start.md (#989)
No need to import 'useState'.
1 parent 44e5055 commit 9555397

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorials/quick-start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export default configureStore({
141141
Now we can use the React-Redux hooks to let React components interact with the Redux store. We can read data from the store with `useSelector`, and dispatch actions using `useDispatch`. Create a `src/features/counter/Counter.js` file with a `<Counter>` component inside, then import that component into `App.js` and render it inside of `<App>`.
142142

143143
```jsx title="features/counter/Counter.js"
144-
import React, { useState } from 'react'
144+
import React from 'react'
145145
import { useSelector, useDispatch } from 'react-redux'
146146
import { decrement, increment } from './counterSlice'
147147
import styles from './Counter.module.css'

0 commit comments

Comments
 (0)