vscode-glean: "Convert to Stateful Component" doesn't work with function expressions
// Doesn't work
const button = props => (
<button type="submit" className={props.className}>
{props.children}
</button>
)
// Does work
function button(props) {
return (
<button type="submit" className={props.className}>
{props.children}
</button>
)
}
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 18 (11 by maintainers)
@zackkrida thanks for feedback. I was able to reproduce. Ill handle this ASAP and keep you posed