Hacker News new | ask | show | jobs
by williamdclt 2246 days ago
Well generators are a good primitive to represent "stateful" "functions" "with effects". The concept of hooks, which somehow give the control back to React to do something, map marvelously to react.

I'd be surprised if generators didn't come into React at one point or another