Mar 31, 2023
I couldn't agree more. Implementing the feature from a framework in vanilla js is not only fun but also helps us use it in the framework wisely. Also, you are 100% right. This code doesn't implement reactivity in the same way as `useState` itself does. This is why I made use of React rendering to be able to determine which component is rendered.