4 ms·
Would it be possible to have a single method on a class that behaves like whatever useEffect is doing?
by batiste 6y ago
Would it be possible to have a single method on a class that behaves like whatever useEffect is doing?
- lindskogen 6y agoNot in a single method, no. Watch this talk for more details! https://www.youtube.com/watch?v=wXLf18DsV-I https://www.youtube.com/watch?v=wXLf18DsV-I
- batiste 6y agoWell, I did something a bit similar my own language: https://github.com/batiste/blop-language/commit/90e7704e125ffb3c1fe6b4de2446680d3819ab7e https://github.com/batiste/blop-language/commit/90e7704e125f... Not sure where classes are an issue with doing anything like this