Skip to content

Commit d633baa

Browse files
committed
[fix] update useDispatch example import name: useReduxDispatch
1 parent 2ba9924 commit d633baa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hooks/useDispatch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { useStore } from './useStore'
88
* @example
99
*
1010
* import React, { useCallback } from 'react'
11-
* import { useReduxDispatch } from 'react-redux'
11+
* import { useDispatch } from 'react-redux'
1212
*
1313
* export const CounterComponent = ({ value }) => {
1414
* const dispatch = useDispatch()
@@ -21,7 +21,7 @@ import { useStore } from './useStore'
2121
* )
2222
* }
2323
*/
24-
export function useDispatch() {
24+
export function useDispatch () {
2525
const store = useStore()
2626
return store.dispatch
2727
}

0 commit comments

Comments
 (0)