react-docgen
react-docgen copied to clipboard
React docgen issue with react styleguidist
Getting an error while creating a component library :
Warning: Cannot parse src/components/Inputs/Table/Table.js: Error: Plugin/Preset files are not allowed to export objects, only functions.
Table.js :
import React from 'react'; import { css } from 'emotion';
import './table.scss';
const tableCss = cssborder: 1px solid black; font-size: 20px;;
const Table = ({
}) => { (
| Company | Contact | Country |
|---|---|---|
| Alfreds Futterkiste | Maria Anders | Germany |
| Centro comercial Moctezuma | Francisco Chang | Mexico |
| Ernst Handel | Roland Mendel | Austria |
| Island Trading | Helen Bennett | UK |
| Laughing Bacchus Winecellars | Yoshi Tannamuri | Canada |
| Magazzini Alimentari Riuniti | Giovanni Rovelli | Italy |
export default Table;
I need to display props and methods on the component library.