Remix.run Logo
▲ jitl 4 hours ago

In my experience LLMs write mediocre React code: it works, but is the most naive implementation possible for a given task. It needs to be bullied extensively to write performant React that considers prop stability, does updates in event handlers instead of convoluted useEffect chains, etc. I haven't tried Svelte in a while but "lots of React in training data" doesn't feel like a huge boon to me.

▲casper14 4 hours ago | parent [-]

Tells you something about the average React code

▲ceejayoz 2 hours ago | parent [-]

Or that there are a lot of very basic React tutorials out there.

Like how half of PHP's problem for a while was w3schools.

▲jack_pp 4 minutes ago | parent [-]

tutorials are probably less than 0.1% of the training data compared to actual code, or you mean average project is influenced by basic tutorials?