React Smooth Render.
React Smooth Render is an open-source npm package that solves one of React's most common UX gaps: smooth mount and unmount animations. Using React Fragments, it wraps any component in a visibility toggle with configurable animation timing — without leaving any extra DOM nodes behind.
Tech Stack
Hosted At
ferrousdesigner.github.io/react-smooth-render
React components mount and unmount instantly, making it impossible to animate exits natively. CSS transitions can't animate elements that disappear from the DOM before the animation plays.
React Smooth Render uses a hidden state pattern with React Fragments to delay unmounting until the exit animation completes, all without adding wrapper divs or polluting the DOM.
Key Features
Case Study
React's declarative model makes exit animations nearly impossible without complex lifecycle management or heavy animation libraries.
Used a hidden state flag to delay DOM removal until CSS transitions complete, wrapped in React Fragments to keep the DOM clean.
A 1-import solution to React exit animations, published on npm and used in production projects.