Comment Comment by lj3 > as multiple independent components might want to share state or listen to shared events, etc.If you recall, I said...> Hooks are great because it keeps the state local, but it can be re-used across components if we need to.The use case you just defined is exactly why hooks were created. parent lj3 7 years ago
If you recall, I said...
> Hooks are great because it keeps the state local, but it can be re-used across components if we need to.
The use case you just defined is exactly why hooks were created.