October 2019
Intermediate to advanced
426 pages
11h 49m
English
After creating all our custom Hooks, we are going to create an index.js file in our Hooks directory and re-export our Hooks there, so that we can import our custom Hooks as follows: import { useTheme } from './hooks'
Let's export all our custom Hooks now using the following steps:
import useTheme from './useTheme'import useDispatch from './useDispatch'import usePostsState from './usePostsState'import useUserState from './useUserState'import useDebouncedUndo from './useDebouncedUndo'
export { useTheme, useDispatch, usePostsState, useUserState, useDebouncedUndo ...Read now
Unlock full access