chore: fix some typos (#587)

This commit is contained in:
Zeng1998
2022-11-26 14:23:29 +08:00
committed by GitHub
parent 1ee8ebc9e1
commit 54271c1598
23 changed files with 60 additions and 60 deletions

View File

@ -5,7 +5,7 @@ const useToggle = (initialState = false): [boolean, (nextState?: boolean) => voi
// Initialize the state
const [state, setState] = useState(initialState);
// Define and memorize toggler function in case we pass down the comopnent,
// Define and memorize toggler function in case we pass down the component,
// This function change the boolean value to it's opposite value
const toggle = useCallback((nextState?: boolean) => {
if (nextState !== undefined) {