import React, { useState } from "react"
import { usePrevious } from "@corets/use-previous"
const Example = () => {
const [count, setCount] = useState(0)
const previousCount = usePrevious(count)
return (
<div>
<div>count: {count}</div>
<div>previous count: {previousCount}</div>
</div>
)
}