Understanding When to Use Refs vs Variables in Effect Typescript
I'm struggling to understand when exactly do I need refs. The docs explain how to use them but not when to use them and how would those use cases be different from using variables. And this sentence "With Ref, we can share state between different parts of our program without relying on mutable variables directly." sounds like I shouldn't use variables at all, which seems like a ton of complexity out of thin air. Are some guidelines for this?
