Commit 89691cbe authored by Jerome Fitzgerald's avatar Jerome Fitzgerald Committed by Tim Neutkens

[chore] Examples: styled-jsx-plugin-sass@0.2.0, show dynamic (#3137)

* [chore] styled-jsx-plugin-sass@0.2.0, show dynamic

styled-jsx-plugin-sass had an update that now allows for sass and
 dynamic to live together.

This updates that package and updates the example slightly to show how.

* [fix] errant space in styled-jsx-scss example
parent a2a83236
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"node-sass": "4.5.3", "node-sass": "4.5.3",
"react": "16.0.0", "react": "16.0.0",
"react-dom": "16.0.0", "react-dom": "16.0.0",
"styled-jsx-plugin-sass": "0.1.0" "styled-jsx-plugin-sass": "0.2.0"
}, },
"license": "ISC" "license": "ISC"
} }
const backgroundColor = '#eee'
export default () => ( export default () => (
<div className='hello'> <div className='hello'>
<p>Hello World</p> <p>Hello World</p>
...@@ -5,7 +7,7 @@ export default () => ( ...@@ -5,7 +7,7 @@ export default () => (
$color: red; $color: red;
.hello { .hello {
background: #eee; background-color: ${backgroundColor};
padding: 100px; padding: 100px;
text-align: center; text-align: center;
transition: 100ms ease-in background; transition: 100ms ease-in background;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment