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

CountDown 组件和 useCountDown 合并在一起 #177

Closed
ickg5 opened this issue Dec 11, 2021 · 3 comments
Closed

CountDown 组件和 useCountDown 合并在一起 #177

ickg5 opened this issue Dec 11, 2021 · 3 comments

Comments

@ickg5
Copy link
Contributor

ickg5 commented Dec 11, 2021

No description provided.

@ickg5
Copy link
Contributor Author

ickg5 commented Dec 11, 2021

使用组合式方式可能存在性能问题,因此提异议合并在一起。

function CountDownExemple() {
  const { current } = useCountDown({ autostart: true, time: 30 * 60 * 60 * 1000 })
  return <CountDown current={current} />
}

@ickg5
Copy link
Contributor Author

ickg5 commented Dec 11, 2021

#176

@ickg5
Copy link
Contributor Author

ickg5 commented Dec 13, 2021

#179

@ickg5 ickg5 closed this as completed Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant