As I was researching this topic, I couldn't find a clear answer anywhere. I'm looking to export a stylesheet to the rest of my app and convert my existing ES5 code to ES6. Even though resources like facebook.github didn't provide much clarity on this issue. Here is my current ES5 code:
var fontFamily = 'Comic Sans MS, Lucida Handwriting, cursive';
var background = 'pink url("https://media.giphy.com/media/oyr89uTOBNVbG/giphy.gif") fixed';
var fontSize = '4em';
var padding = '45px 0';
var color = 'green';
module.exports = {
fontFamily: fontFamily,
background: background,
fontSize: fontSize,
padding: padding,
color: color
};
I would appreciate any assistance with this problem. I have attempted the following so far:
export default {
fontFamily: fontFamily,
background: background,
fontSize: fontSize,
padding: padding,
color: color
};