Hacker News new | ask | show | jobs
by batiste 2244 days ago
Would it be possible to have a single method on a class that behaves like whatever useEffect is doing?
1 comments

Not in a single method, no. Watch this talk for more details! https://www.youtube.com/watch?v=wXLf18DsV-I
Well, I did something a bit similar my own language: https://github.com/batiste/blop-language/commit/90e7704e125f... Not sure where classes are an issue with doing anything like this