Implement Mini-React in 400 lines of code, a minimal model with asynchronous interruptible updates.
A simple running screenshot:
I used the tic-tac-toe tutorial example provided by React’s official website and can see that it works perfectly. In addition, it currently supports function components and class components, which may meet 80% of your needs!
This is what I created after reading a lot of React's source code, it's basically the same as React in overall logic and function naming, if you're interested in React's internals, it's for you!