react-hydration-detect
v1.0.1
Published
## Usage
Downloads
5
Readme
react-hydration-detect
Usage
npm install react-hydration-detect
import useHydrationDetect from "react-hydration-detect";
export default function Index() {
useHydrationDetect({
onHydration: () => {
console.log("Hydrating...");
},
onHydrationComplete: () => {
console.log("Hydrated!");
}
});
return <h1>Hello, World!</h1>;
}
License
MIT