I was experimenting with the new Hook feature in React. Considering I have the following two components (using React Hooks) -
const HookComponent = () =>
You will still need to lift your state up to an ancestor component of HookComponent1 and HookComponent2. That's how you share state before and the latest hook api doesnt change anything about it.