Open enjoy-wind opened 2 years ago
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)
esprima.parse('some code')
maybe try my fork, esprima-next
I have fixed this issue myself, what attempts to support VUE.
I've seen your commit, but it could happen again, and I don't see much development here...
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
Expected output
Actual output
Relevant references