Skip to content

Commit 77915dc

Browse files
Merge pull request #125 from lewandy/patch-1
Fix typo "comopnent" => "component" in useToggle
2 parents e0f9068 + 28dcfb0 commit 77915dc

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)