Skip to content
react-body-classname

Alternatives to react-body-classname

200 apps like react-body-classname, closest match first.

Top picks

  1. R

    react-css-modules

    Launch

    Seamless mapping of class names to CSS modules inside of React components.

  2. R

    react-bem-helper

    Launch

    allows you to easily add BEM-style element and modifier classes to React elements, while hopefully making it easier to scan.

  3. R

    react-document-title

    Launch

    React 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

  4. S

    style-it

    Launch

    Component for writing plaintext CSS in React apps -- isomorphic, scoped, FOUC-free, fully featured, CSS-in-JS

  5. R

    react-headroom

    Launch

    Hide your header until you need it. React.js port of headroom.js

  6. R

    react-meta-tags

    Launch

    Handle document meta/head tags in isomorphic react with ease.

More like react-body-classname

7
R

react-css-collapse

Component-wrapper for collapse animation with css for elements

Launch
8
R

react-document-meta

Declarative, nested and stateful HTML document meta tags for React

Launch
9
R

react-modal

Accessible modal dialog component for React

Launch
10
R

react-titled

To set document.title with ease. Nested. Flexible

Launch
11
R

react-sidebar

A sidebar component for React

Launch
12
R

react-portal

To make your life with React Portals easier

Launch
13
R

@rc-component/portal

React Portal Component

Launch
14
R

react-scroll

React scroll component

Launch
15
R

react-collapse

Component-wrapper for collapse animation for elements with variable

Launch
16
R

react-animate-height

Lightweight React component for animating height using CSS transitions

Launch
17
R

react-paginate

A ReactJS component that creates a pagination

Launch
18
R

react-imgix

Add fast, responsive images as an image, picture, or background!

Launch
19
R

react-clipboard.js

Clipboard.js wrapper for ReactJS

Launch
20
R

react-virtualized

React components for efficiently rendering large lists and tabular data

Launch
21
B

@brainhubeu/react-carousel

Carousel component for React

Launch
22
R

react-collapsible

React component to wrap content in Collapsible element

Launch
23
R

react-smooth-collapse

React component for animating showing or hiding an element

Launch
24
R

react-pro-sidebar

high level and customizable side navigation

Launch
25
R

react-text-truncate

Truncate text for React.js

Launch
26
R

react-interpolate-component

A component for React that renders elements into a format string containing

Launch
27
R

react-on-screen

A wrapper component to track if your react component is visible on screen

Launch
28
P

@primer/react

An implementation of GitHub's Primer Design System using React

Launch
29
R

react-multiline-clamp

React component that uses the css line clamping

Launch
30
R

react-markdown

React component to render markdown

Launch
31
R

react-async-button

React button component for handling async actions

Launch
32
R

react-slider

Slider component for React

Launch
33
R

react-js-pagination

Simple, easy to use component for pagination

Launch
34
G

gatsby-background-image

Lazy-loading React background-image component

Launch
35
F

flowbite-react

Official React components built for Flowbite and Tailwind CSS

Launch
36
R

react-component-managers

react-component-managers React component

Launch
37
R

react-custom-scrollbars

React scrollbars component

Launch
38
R

react-fast-marquee

A lightweight React component

Launch
39
R

react-copy-to-clipboard

Copy-to-clipboard React component

Launch
40
D

@daformat/react-headless-carousel

A react headless carousel component

Launch
41
R

react-card-flip

ReactCardFlip

Launch
42
R

react-notification-system

A React Notification System fully customized

Launch
43
R

react-codemirror

Codemirror

Launch
44
R

react-visibility-sensor

Sensor component for React that notifies you

Launch
45
I

interweave

React library to safely render HTML, filter attributes, autowrap text

Launch
46
R

react-burger-menu

An off-canvas sidebar with effects and styles

Launch
47
R

react-scrollchor

A React component for scrolling to #hash links with smooth animations

Launch
48
R

react-auto-controlled

Component autonomous state control utilities in React class methods

Launch
49
R

react-popup

React popup component from Minutemailer

Launch
50
R

react-top-loading-bar

A very simple, highly customisable react top loader component

Launch

About react-body-classname

R

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