React like reactivity demo (with hooks)

Basic demo of how to implement a very basic version of how React hooks work.

Click on the page to increase the counter, or type in the input box to set a name.

There are of course an almost endless list of things that are not implemented here. Its just a demo of a very basic view of how state / hooks work in React. It should also clear up any confusion why you have to use state/hooks before any conditionals in components.

I've only implemented the following: