# next **Repository Path**: mirrors_emotion-js/next ## Basic Information - **Project Name**: next - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-05-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # emotion next # NOTE: All of these packages are now in the emotion repo > An experimental css-in-js library built for React **This is pretty experimental and there will be breaking changes often. Don't use it for anything really important yet.** ## Why should I use this? * Server side rendering just works. (just call `react-dom`'s `renderToString` or `renderToNodeStream`) * You like the css prop. * You want a flexible css-in-js library. * It works with string styles. * It works with object styles. * It has great composition. * ~~There's no babel plugin, just babel macros.~~(There's also a babel plugin now if you want it)(i.e. style minification, labels and etc. will work in react-scripts@2) ## Why shouldn't I use this? * It only works with react@>=16.3.0. * Don't use it if you're totally fine with the styling solution you're already using * Styles won't be cached in SSR if two elements have the same style and they have no common ancestor with styles from emotion or a Provider * It requires every style to be rendered in the react tree * It renders style elements next to the elements that are being styled in SSR so using pseudo-classes like `:first-child` and `:nth-child` is unsafe and pseudo-classes like `:first-of-type` and `:nth-of-type` should be used instead #### Getting Started ```bash yarn add @emotion/core ``` ```jsx /** @jsx jsx */ import { jsx } from '@emotion/core' // must be react@>=16.3.0 import { render } from 'react-dom' render(