hydration-bug-component
v1.0.1
Published
A React Component that intentionally causes hydration errors for testing purposes.
Maintainers
Readme
Hydration Bug Component
A React Component that intentionally causes hydration errors for testing purposes.
Installation
npm install hydration-bug-componentUsage
import HydrationBugComponent from 'hydration-bug-component';
function App() {
return (
<div>
<HydrationBugComponent />
</div>
);
}Description
This component intentionally causes hydration mismatches between server and client rendering. It's useful for:
- Testing error boundaries
- Debugging hydration issues
- Understanding React hydration behavior
- Testing error monitoring systems
The component renders different content on the server vs. client, which will trigger React's hydration warnings.
License
MIT
