I end up creating a simple App to illustrate how to use the new createState function and custom components in a React like manner. Here's the code for it - https://github.com/victorqribeiro/tinyapp
Here's the PR for the createState function - https://github.com/victorqribeiro/TinyJS/pull/9