Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
batiste
· 6y ago · 0 comments
Would it be possible to have a single method on a class that behaves like whatever useEffect is doing?
Comments
[–]
lindskogen
6y ago
Not in a single method, no. Watch this talk for more details!
https://www.youtube.com/watch?v=wXLf18DsV-I
[–]
batiste
OP
6y ago
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