Replace ReactDOM.render with createRoot in React padding example - #1192
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughSix React examples now use the React 18 ChangesReact 18 Root API Adoption
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to The React padding example now uses React 18 root rendering while preserving its existing StrictMode tree. No merge-blocking risk is currently identified. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the change, its motivation, and the related issue. It does not include the required Changes, Checklist, or Release Impact headings and does not confirm the required checks or release impact. Resolution Add the template headings. Under Changes, describe the implementation and motivation. Complete the Contributing guide and local test checklist items. Select the appropriate Release Impact option, such as docs/CI/dev-only if applicable, and state whether a changeset is required.
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
infinite-scroll, variable, sticky, scroll-padding and smooth-scroll were still using the legacy ReactDOM.render API, which was removed in React 19, so their docs sandboxes rendered blank just like the padding example. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Aligns the padding example with the other migrated React examples. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
View your CI Pipeline Execution ↗ for commit aff8e72
☁️ Nx Cloud last updated this comment at |
Replaced ReactDOM.render with createRoot in React padding example as the example was not even showing any preview in the docs.
Fixes #1190
Summary by CodeRabbit