Closed
Description
Bug Report
π Search Terms
Related: #29890
jsx extract constant refactoring quick fix
π Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about refactorings
β― Playground Link
N/A
π» Code
<>
<span>Hello</span>
</>
- Highlight
<span>Hello</span>
- Run refactoring "extract to constant"
π Actual behavior
const newLocal = <span>Hello</span>;
<>
newLocal
</>
π Expected behavior
const newLocal = <span>Hello</span>;
<>
{newLocal}
</>