puzzlecards.js error 使用dva @concat报错

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
eslint, javascript, react
Domain
frontend

Research direction

Start with the file containing PuzzleCardsPage and the reported lines 23–28, then inspect the decorator/export syntax and the ESLint configuration or parser in use. Reproduce the lint error and verify that the tutorial code passes ESLint without the reported parsing error.

Written by the indexing model from the issue text.

Description

Parsing error: Using the export keyword between a decorator and a class is not allowed. Please use export @dec class instead.
23 |
24 | @connect(mapStateToProps, mapDispatchToProps)

25 | export default class PuzzleCardsPage extends Component {
| ^
26 | componentDidMount() {
27 | this.props.onDidMount();
28 | }eslint
image

Dominant language
JavaScript
Stars
432
Forks
155
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ant-design/react-tutorial

All issues in ant-design/react-tutorial

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.