Open jmarr opened 9 years ago
This would involve 4 steps: 1) Integrate the JSX tokenizer from esprima-fb or espree. 2) Integrate the JSX parser from esprima-fb or espree. 3) Finish #44 and allow JSX AST nodes to pass through 4) Find a code generator that supports JSX (escodegen doesn't appear to have any forks with jsx support)
Esprima 3.0 included JSX support. Since #44 is unlikely to happen, this is theoretically doable today.
My app is using oj for model and controller code and React for rendering the UI. React supports JSX, so most of our UI components are JSX files.
Right now, we can't use oj objects in our jsx files because the oj complier doesn't understand jsx and the jsx compiler doesn't understand oj.
If the oj compiler could handle jsx files, then we could use oj objects in our jsx files.