I find that if you check when the LLM's data was updated, and then choose a framework/language version release date that's before that, then it's pretty good.
In my case I use tailwind css a lot and found that sticking to v3.4.3 created the best output from LLMs.