react-sais
v1.0.12
Published
Set of React Hook's to be used with SSR
Readme
react-sais
Set of React Hook's to be used with SSR
Installation
npm install react-sais --save
yarn add react-sais
bower install react-sais --saveCurrent Lib Hooks
- useWindow
- useGeoLocation
Usage
import * as React from "react";
import { useWindow, useGeoLocation } from "custom-hook";
export default function Home() {
const hook = useWindow();
const location = useGeoLocation();
return <div>{JSON.stringify([hook, location])}</div>;
}