React-styleguidist: Stateless components do not output in build

Created on 11 Apr 2016  路  1Comment  路  Source: styleguidist/react-styleguidist

Stateless components such as export default props => 'text' are not included in the output when running styleguidist build. I've narrowed it down and found that if the UglifyJsPlugin is removed then it works correctly. I guess Uglify may be mangling something with the component somewhere

question

Most helpful comment

Stateless components work if you define them like this:

export default function Button() {}

>All comments

Stateless components work if you define them like this:

export default function Button() {}
Was this page helpful?
0 / 5 - 0 ratings