next-hydration-guard
v1.0.0
Published
Prevents Next.js App Router Hydration errors
Downloads
16
Maintainers
Readme
Getting Started:
- Install:
echo "you should probably know by now"
- Import and use:
import { NextHydrationGuard } from "next-hydration-guard";
// or
import NextHydrationGuard from "next-hydration-guard"; // Also available if you want instead
export const BigChongus = ({ bigChongusData }) => {
// Very important stuff goes here..
return (
<NextHydrationGuard data={bigChongusData} fallback={<div>Loading...</div>}>
<QuestionableDataAtBest data={bigChongusData} />
</NextHydrationGuard>
);
};
- Have a life (optional): Spend time with the wife and kids.
Documentation: Wide range of documentation