Skip to content
This repository was archived by the owner on Nov 18, 2018. It is now read-only.
This repository was archived by the owner on Nov 18, 2018. It is now read-only.

The react in es6 defines the defaultProps error in the component. #95

@huangjihua

Description

@huangjihua

taxError: /Users/huangjihua/Documents/autohome/projects/re-bulma/src/components/panel/panel-tabs.js: Unexpected token (6:19
`export default class PanelTabs extends Component {

6 | static propTypes = {
| ^
7 | children: PropTypes.any,
8 | className: PropTypes.string,
9 | style: PropTypes.object,
`
Defining the static property is not es6, and in the es7 draft, install the babel-preset-stage-0 and try again after the babelrc reference, but not yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions