We do a similar approach, i.e., parse the AST to reconstruct the imports and remove hallucinations. It's quite the technical challenge: feeding non-deterministic generated code into functions to clean up all the hallunications. But it works. You can see examples of developers using our generated React code below.
very exciting to see people building in this space.
1. https://twitter.com/alexdanilo99/status/1746009206497652757 2. https://twitter.com/alexdanilo99/status/1745512223248932990
Example: https://i.imgur.com/Uee4jXr.png
This screenshot of the generated calculator is rubbish https://pub-92e90cabe8b8410dbb5e46d17a83dce2.r2.dev/vx-websi.... This does not match the "high-quality, aesthetically pleasing UI" it boasts in the caption. What's with the ordering of all the buttons? Why is this the examble they chose to screenshot and advertise with?