How can I export a stateless pure dumb component?
If I use class this works:
import React, { Component } from \'react\'; export default class Header ext
ES6 doesn't allow export default const. You must declare the constant first then export it:
export default const
const Header = () => { return Header }; export default Header;
Header
This constraint exists to avoid writting export default a, b, c; that is forbidden: only one variable can be exported as default
export default a, b, c;