A React Component that intentionally causes hydration errors for testing purposes.
npm install hydration-bug-componentA React Component that intentionally causes hydration errors for testing purposes.
``bash`
npm install hydration-bug-component
`javascript
import HydrationBugComponent from 'hydration-bug-component';
function App() {
return (
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.
MIT