react-docgen icon indicating copy to clipboard operation
react-docgen copied to clipboard

React docgen issue with react styleguidist

Open githubakarsh opened this issue 5 years ago • 0 comments

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.

githubakarsh avatar Feb 28 '20 23:02 githubakarsh