We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a3326b6 + 82a19f1 commit c6a319cCopy full SHA for c6a319c
src/pages/useToggle.md
@@ -31,7 +31,7 @@ const useToggle = (initialState = false) => {
31
// Initialize the state
32
const [state, setState] = useState(initialState);
33
34
- // Define and memorize toggler function in case we pass down the comopnent,
+ // Define and memorize toggler function in case we pass down the component,
35
// This function change the boolean value to it's opposite value
36
const toggle = useCallback(() => setState(state => !state), []);
37
0 commit comments