Closed crapthings closed 7 years ago
Ahhh forget about it, its my fault
i think i should reopen this.
How to use ReactiveVar inside stateless component ?
Why are you using a ReactiveVar
? React will automatically re-render the component when props change.
I guess you want to toggle a state of the component.
In this case, a stateful component is a better fit with internal state that you toggle. OR even better: use https://github.com/acdlite/recompose withState
i just want to make a toggler