Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewStanciu committed Nov 14, 2023
1 parent 3dd55bc commit ab4ca84
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,18 @@ returns {
}
*/
```

## Lightning Time Clock React Hook

This package includes a React Hook for implementing a Lightning Time clock in your React app:

```javascript
import { useLightningTimeClock } from '@purduehackers/time/react'

export default function MyComponent() {
const { lightningTimeClock, normalTimeClock, timeColors } =
useLightningTimeClock()

return <p>{lightningTimeClock}</p>
}
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@purduehackers/time",
"version": "0.6.0",
"version": "0.6.1",
"description": "convert between traditional time and lightning time ⚡️",
"main": "dist/index.js",
"module": "dist/esm/index.js",
Expand Down

0 comments on commit ab4ca84

Please sign in to comment.