Skip to content

Conversation

@DeveloperViraj
Copy link

This PR adds a simple introductory example to the useInsertionEffect documentation.

The example injects a <style> tag before the browser paints, helping readers understand when useInsertionEffect runs relative to layout and regular effects.

This makes it easier for beginners to grasp the concept before moving on to advanced CSS-in-JS examples.

Fixes: #8118

@github-actions
Copy link

github-actions bot commented Nov 3, 2025

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Suggestion]: Add simpler beginner-friendly example for useInsertionEffect documentation

1 participant