Comment Comment by ollysb As I understand it this was the inspiration for React's hooks model. The compiler won't give you the same assurances but in practice hooks do at least allow to inject effects into components. parent ollysb 1 year ago