mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Update README.md
This commit is contained in:
parent
c5887281fb
commit
03db7d78a6
|
@ -67,7 +67,7 @@ Glamor's [HowTo](https://github.com/threepointone/glamor/blob/master/docs/howto.
|
|||
|
||||
```jsx
|
||||
import React from 'react'
|
||||
import css, {insertRule} from 'next/css'
|
||||
import css from 'next/css'
|
||||
|
||||
export default () => (
|
||||
<div className={style}>
|
||||
|
@ -75,9 +75,6 @@ export default () => (
|
|||
</div>
|
||||
)
|
||||
|
||||
// Global CSS rule
|
||||
insertRule("html, body { margin: 0; padding: 0; }")
|
||||
|
||||
const style = css({
|
||||
background: 'red',
|
||||
':hover': {
|
||||
|
|
Loading…
Reference in a new issue