I've tried using ChatGPT for help with a React Native (JS) project, and it continually seems to just make up answers and confidently display them as correct.
For instance, I'm trying to use AWS Amplify's Auth service to authenticate users, and when I sign them out it's trying to auto-log them in again.
This is a known bug and there are a few github issues about it. ChatGPT confidently tells me that the way to solve this problem is to use some methods which, when I try them, don't exist at all on Amplify Auth, and when I search for them there's no record of them whatsoever.
Similarly I tried to get its help in making an animation using the RN Animated API, and its suggestions were all from React Native Reanimated (a different project), although the code sample imported the Animated API from RN instead. When I corrected it, it gave some suggestions with methods that didn't exist for either.
These are just a few examples but I'm finding it fairly useless for coding help so far. Am I expecting too much from it? Am I using it wrong?
In many ways it is a glorified copy/paste machine that's faster (in some cases) than using traditional search. And for bigger projects you're going to get obliterated because at some point the model will either forget the conversation or it will start giving you some random suggestions, all of which lead to frustration and lost time.
But for small projects and snippets, I definitely use it a lot. JavaScript functions, CSS boilerplates and stuff like that - even if it's 50 lines long, I can just do some other stuff while it generates the basic outline and I am on my way.