Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Readme with new API changes #32

Merged
merged 7 commits into from
Mar 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: update useStopwatch example #29
  • Loading branch information
dlcastillop committed Mar 2, 2024
commit b060a5780ee45a106e24de9872ebb014f31cadf3
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -186,7 +186,12 @@ const ReactCounter = () => {
play,
reset,
togglePause,
} = useStopwatch(1, 0, 10, 50);
} = useStopwatch({
endTime: "00:00:00:10",
startPaused: true,
separator: "-",
onFinish: () => console.log("Stopwatch ended"),
});

return (
<div>
7 changes: 6 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -16,7 +16,12 @@ const App = () => {
play,
reset,
togglePause,
} = useStopwatch();
} = useStopwatch({
endTime: "00:00:00:10",
startPaused: true,
separator: "-",
onFinish: () => console.log("Stopwatch ended"),
});

return (
<div>