DEV Community

Discussion on: Compute values on component mount with React Hooks: State vs Ref

Collapse
 
raicuparta profile image
Raicuparta

Good point, the idea was always that computeValue() was something imported from somewhere else but I didn't make that clear in my minimal examples. I will update it.

Thanks!