Rules
no-hydrate
Full Name in eslint-plugin-react-dom
Full Name in @eslint-react/eslint-plugin
Features
🔄
Presets
dom
recommended
recommended-typescript
recommended-type-checked
Description
Replaces usages of ReactDom.hydrate()
with hydrateRoot()
.
Examples
Before
After
Implementation
Further Reading
See Also
- no-return
Replaces usages ofReactDom.hydrate()
withcreateRoot(node).hydrate()
.