Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

emotion

Package Overview
Dependencies
Maintainers
1
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emotion - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

src/glamor/__tests__/__snapshots__/index.js.snap

3

package.json
{
"name": "emotion",
"version": "0.0.2",
"version": "0.0.3",
"description": "css prop for all",

@@ -27,2 +27,3 @@ "files": [

"glam": "^4.0.3",
"glamor": "^2.20.25",
"jest": "^20.0.1",

@@ -29,0 +30,0 @@ "jest-glamor-react": "^1.3.0",

@@ -11,2 +11,4 @@ # emotion

- [Install](#install)
- [Glam](#emotionglam)
- [Glamor](#emotionglamor)

@@ -48,1 +50,29 @@ ## Install

## `emotion/glamor`
```bash
npm install -S glamor
```
**.babelrc**
```json
{
"plugins": [
"emotion/glamor",
]
}
```
```jsx harmony
const Name = ({ color, name }) => <h1 css={{ color: 'red' }}>{name}</h1>
```
is converted to
```jsx harmony
const Name = ({ color, name }) => <h1 {...css({color: 'red' })}>{name}</h1>
```
**Similar to importing React when using jsx, `import {css} from 'glamor'` must be at the top of your source files.**
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc