1.1.1 โข Published 7 months ago
@utiliser/react-hooks v1.1.1
๐งช Explore
๐ Prerequisite
- Latest - React ^18
๐ช Install
using NPM:
npm install @utiliser/react-hooks
using Yarn:
yarn add @utiliser/react-hooks
๐ Usage
import { useOnline } from '@utiliser/react-hooks'
const App = () => {
const { isOnline } = useOnline()
return <p>{isOnline ? 'Online' : 'Offline'}</p>
}
export default App
โจ Inspired By
๐ฅท Crafted
๐ License
MIT License ยฉ 2022-PRESENT Virak Khun