Alternatives to react-body-classname
200 apps like react-body-classname, closest match first.
Top picks
- R

react-css-modules
LaunchSeamless mapping of class names to CSS modules inside of React components.
- R

react-bem-helper
Launchallows you to easily add BEM-style element and modifier classes to React elements, while hopefully making it easier to scan.
- R

react-document-title
LaunchReact Document Title is a small React component for setting document.title declaratively in a single-page app. You place a DocumentTitle element inside your components, and it sets the page title while it is mounted. It supports nesting, so
- S

style-it
LaunchComponent for writing plaintext CSS in React apps -- isomorphic, scoped, FOUC-free, fully featured, CSS-in-JS
- R

react-headroom
LaunchHide your header until you need it. React.js port of headroom.js
- R

react-meta-tags
LaunchHandle document meta/head tags in isomorphic react with ease.
More like react-body-classname

react-interpolate-component
A component for React that renders elements into a format string containing
About react-body-classname

react-body-classname
A declarative, nested way to manipulate your body's className
react-body-classname is a small React helper for setting the class name on the document body from inside your components. Instead of changing document.body by hand, you describe the classes declaratively, and components nested in your tree can each add their own. The component is stateful, so the combined class name stays in step with what is mounted. It is built on React Side Effect and also works on the server. After rendering to a string, you call BodyClassName.rewind() to get the combined class names and insert them into your HTML template. The package is installed from npm and needs React 0.13 or later. The README notes two things to keep in mind: only a single child is supported in its props, and the server rewind call must be made, because the component keeps track of mounted instances and skipping it causes a memory leak. The project is open source on GitHub.
- Price
- Free
- Made by
- iest
- Category
- UI Libraries
- Website
- github.com/iest/react-body-classname






































