@@ -6,7 +6,7 @@ the emotion babel plugin can handle two types of import renaming.
66## Dynamic
77
88``` js
9- import something , { css as cows } from ' emotion' ;
9+ import something , { css as cows } from ' react- emotion' ;
1010
1111const classes = cows`
1212 color: red;
@@ -39,7 +39,7 @@ styled-jsx application. When compiling the following file with emotion
3939and styled-jsx.
4040
4141``` js
42- import styled , { css } from " emotion" ;
42+ import styled from " react- emotion" ;
4343
4444export default () => (
4545 < div>
@@ -61,7 +61,7 @@ outputs.
6161``` js
6262import _JSXStyle from " styled-jsx/style" ;
6363import { css as _css } from " emotion" ;
64- import styled , { css } from " emotion" ;
64+ import styled from " react- emotion" ;
6565
6666export default (() => < div data- jsx= {2648947580 }>
6767 < p data- jsx= {2648947580 }> only this paragraph will get the style : )< / p>
@@ -91,7 +91,7 @@ We can avoid re-compiling the `css` props from styled-jsx.
9191
9292``` js
9393import _JSXStyle from " styled-jsx/style" ;
94- import styled , { css } from " emotion" ;
94+ import styled , { css } from " react- emotion" ;
9595
9696export default (() => < div data- jsx= {2648947580 }>
9797 < p data- jsx= {2648947580 }> only this paragraph will get the style : )< / p>
0 commit comments