Socket
Book a DemoInstallSign in
Socket

@lunit/use-reset-time

Package Overview
Dependencies
Maintainers
7
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lunit/use-reset-time

Reset Time control hook

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
7
Created
Source

@lunit/use-reset-time

<InsightViewer>에서 사용되는 resetTime={} 을 관리하는데 사용된다.

간단하게 사용하기 위해서 만들 Util이고, 필요한 경우 아래와 같이 사용해도 된다.

function Component() {
  const [resetTime, setResetTime] = useState<Date>(() => Date.now());

  return <div>...</div>;
}

http://frontend-components-handbook.netlify.com/#/use-reset-time

Install

npm install @lunit/use-reset-time

FAQs

Package last updated on 23 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts