Search Terms
quickfix, jsx, function
Suggestion
quick fix for function only contains one jsx element and have not the return statement
Use Cases
the pattern of a function with block body that only have one jsx element without return statement
that seems a error
could we provide a quickfix for that?
Examples
items.map(x => {
<div>123</div>
})
to
items.map(x => (
<div>123</div>
))
Checklist
My suggestion meets these guidelines:
Search Terms
quickfix, jsx, function
Suggestion
quick fix for function only contains one jsx element and have not the return statement
Use Cases
the pattern of a function with block body that only have one jsx element without return statement
that seems a error
could we provide a quickfix for that?
Examples
to
Checklist
My suggestion meets these guidelines: