I think the idea of getting chatGPT to output code is misguided. The code is unnecessary, just describe the behavior you want and let chatGPT be the app. People can remix apps by saying "Act like that but do this one thing differently instead."