3 ms·
> Has to anyone asked ChatGPT to refactor existing horrible code? Yes it works well with stuff like React class components to functional ones with hooks. It ev
by satvikpendem 4y ago
> Has to anyone asked ChatGPT to refactor existing horrible code?
Yes it works well with stuff like React class components to functional ones with hooks. It even tells you what to optimize and does it for you, if you ask it to.
- pcthrowaway 4y agoWhoa. Do you have a good guide on how to do this?
- tarr11 4y agoyou prompt with “rewrite this code, but use React Hooks”