Skip to content
New issue

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

JSX Identify the problem #2107

Open
enjoy-wind opened this issue Nov 25, 2021 · 3 comments
Open

JSX Identify the problem #2107

enjoy-wind opened this issue Nov 25, 2021 · 3 comments

Comments

@enjoy-wind
Copy link

React class component arrow function cannot be recognized.

Example Content:

import React from 'react'

class test extends React.Component{
constructor(props) {
super(props);
this.state = {
}
}

initData = (item) =>{
}

render() {
return (


)
}
}

export default connect(mapStateToProps)(LinkageSwitchItem)

Steps to reproduce

esprima.parse('some code')

Expected output

Actual output

Relevant references

@jogibear9988
Copy link

maybe try my fork, esprima-next

@enjoy-wind
Copy link
Author

I have fixed this issue myself, what attempts to support VUE.

@jogibear9988
Copy link

I've seen your commit, but it could happen again, and I don't see much development here...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants