This commit is contained in:
2020-09-07 16:42:09 +07:00
parent 4529ba57b8
commit baf808ae79
27 changed files with 353 additions and 161 deletions

16
example/src/index.js Normal file
View File

@@ -0,0 +1,16 @@
import React from "react"
import ReactDOM from "react-dom"
import { useCountdown} from "cubetiq-react-use-countdown"
const App = () => {
const { timeleft , start } = useCountdown()
return (
<div>
<button onClick={() => start(10000)}>Start Count down </button>
<h1>Hellos Ciybt {timeleft}</h1>
</div>
)
}
ReactDOM.render(<App /> , document.querySelector("#root"))