That's kinda the point. Things change. Prompts allow us to define the requirements without holding is into specific framework versions. As things evolve, the result of the prompt must be different.
In other words, there is no point in keeping code because you have to maintain it.