Printing original source of XJSElement text children produce errors
Open
- Dominant language
- TypeScript
- Stars
- 5.3k
- Forks
- 364
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 3
Description
JSX text children are consider string literals but in the original source code they are found unquoted:
`
x
`
Say we transform to React and print with recast:
`React.createElement('div', null, x);`
Notice how `x` is not quoted.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the JSX example `
x
` and its React transformation shown in the issue, then inspect how JSX text children are handled by the syntax-tree printer. Compare the printed output with the expected quoted string and verify that the transformation no longer produces an unquoted `x`.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- devtools, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100