We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import {connect} from "dva";
@connect( state => (state.menu) ) export default class extends React.Component { ..... }
The text was updated successfully, but these errors were encountered:
可以使用,我调用的位置出错了
Sorry, something went wrong.
请问具体是什么原因造成无法使用注解?我这边
@connect(mapStateToProps, mapDispatchToProps) export default class HistoricalAlarmTable extends React.Component{...}
报错——Parsing error: Using the export keyword between a decorator and a class is not allowed. Please use export @dec class instead.
export @dec class
请问具体是什么原因造成无法使用注解?我这边 @connect(mapStateToProps, mapDispatchToProps) export default class HistoricalAlarmTable extends React.Component{...} 报错——Parsing error: Using the export keyword between a decorator and a class is not allowed. Please use export @dec class instead.
已解决--->
export default @connect(mapStateToProps, mapDispatchToProps) class HistoricalAlarmTable extends React.Component{...}
No branches or pull requests
import {connect} from "dva";
The text was updated successfully, but these errors were encountered: