Chat GPT is pretty shit at code generating, it literally gives me wrong answers almost every single time. People saying it's super capable of doing such things are either JavaScript developers or haven't really tried out the product. OVERRATED, that's all I gotta say