Skip to content

Commit c6a319c

Browse files
Merge pull request #125 from lewandy/patch-1
Fix typo "comopnent" => "component" in useToggle
2 parents a3326b6 + 82a19f1 commit c6a319c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/useToggle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const useToggle = (initialState = false) => {
3131
// Initialize the state
3232
const [state, setState] = useState(initialState);
3333

34-
// Define and memorize toggler function in case we pass down the comopnent,
34+
// Define and memorize toggler function in case we pass down the component,
3535
// This function change the boolean value to it's opposite value
3636
const toggle = useCallback(() => setState(state => !state), []);
3737

0 commit comments

Comments
 (0)