AI won't take of front-end dev jobs until it can start creating a new framework every week, constantly break backwards compatibility, then abandon the project and start a new one.
This right here is the right strategy, make a new framework and wait for the model to be re-trained with a corpus large enough for it to be correct. Rinse and repeat.