Closed paranoidjk closed 4 years ago
This is a parser, not a React-specific transpiler. It intentionally returns the original text in case some other implementation of JSX wants to preserve those spaces.
@RReverser Thanks for your quick answer, i try it in babel repl, loooks like it works fine
I just wonder if the acorn jsx parser don't do this, who did this job?
Demo JSX Code
AST Result
test in https://astexplorer.net/
Expect Result
according to https://reactjs.org/docs/jsx-in-depth.html