Great explanation, thanks. Hooks look like a local service instance in Angular component.
Sanid Sa

If you want to share state between two components then you can try lifting state to their closest common parent. That means have the parent store the state and pass the state as props to children components. If the components are very deep and lifting state doesn’t make sense then use React Context. There is a hook called useContext for consuming context data in components.