@emotion/react
> Simple styling in React.

@emotion/react downloads @emotion/react version @emotion/react license

@emotion/reactSimilar Packages:
Npm Package Weekly Downloads Trend
3 Years
🌟 Show real-time usage chart on @emotion/react's README.md, just copy the code below.
## Usage Trend
[![Usage Trend of @emotion/react](https://npm-compare.com/img/npm-trend/THREE_YEARS/@emotion/react.png)](https://npm-compare.com/@emotion/react#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
🌟 Show GitHub stars trend chart on @emotion/react's README.md, just copy the code below.
## GitHub Stars Trend
[![GitHub Stars Trend of @emotion/react](https://npm-compare.com/img/github-trend/@emotion/react.png)](https://npm-compare.com/@emotion/react)
Stat Detail
Package
Downloads
Stars
Size
Issues
Publish
License
@emotion/react9,658,20817,910817 kB361a year agoMIT
README for @emotion/react

@emotion/react

Simple styling in React.

Install

yarn add @emotion/react

Usage

/** @jsx jsx */
import { jsx, css, Global, ClassNames } from '@emotion/react'

render(
  <div css={{ color: 'hotpink' }}>
    <div
      css={css`
        color: green;
      `}
    />
    <Global
      styles={{
        body: {
          margin: 0,
          padding: 0
        }
      }}
    />
    <ClassNames>
      {({ css, cx }) => (
        <div
          className={cx(
            'some-class',
            css`
              color: yellow;
            `
          )}
        />
      )}
    </ClassNames>
  </div>
)

More documentation is available at https://emotion.sh.