Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: