diff --git a/Hello.js b/Hello.js index 011b32f..632ff97 100644 --- a/Hello.js +++ b/Hello.js @@ -1,11 +1,9 @@ import React from 'react'; -if (process.env.BROWSER) { - require('Hello.css'); -} +import s from 'Hello.scss'; const Hello = React.createClass({ render: function() { - return
Hello {this.props.name}
; + return
Hello {this.props.name}
; } }); diff --git a/Hello.css b/Hello.scss similarity index 89% rename from Hello.css rename to Hello.scss index a73bee7..ce80c30 100644 --- a/Hello.css +++ b/Hello.scss @@ -1,4 +1,4 @@ -.Hello { +.root { font-size: 3em; font-family: sans-serif; color: rebeccapurple;