I found ChatGPT can write terrible code for the simplest React components, but beautiful code for complex react-three-fiber components. I suppose that is because it was trained on beginner tutorials for basic components and advanced 3d modeling examples for react-three-fiber.
For basic components, I’ve found that by asking for more complexity (e.g. ask it to wrap your nav component in a react context or a custom hook) yields better overall code.
For basic components, I’ve found that by asking for more complexity (e.g. ask it to wrap your nav component in a react context or a custom hook) yields better overall code.