/mini-react

Implement Mini-React in 400 lines of code, a minimal model with asynchronous interruptible updates.

Primary LanguageTypeScriptMIT LicenseMIT

Presentation

Mini-React

Implement Mini-React in 400 lines of code, a minimal model with asynchronous interruptible updates.

Demos

Online Demo

A simple running screenshot:

Demo

Introduce

I used the Tic-Tac-Toe tutorial example provided on the React website, and it works well.

Additionally, it supports both functional and class components. Its overall logic and function naming are largely consistent with React's fundamentals. If you are interested in the inner workings of React, then this tutorial is suitable for you!

See how to build it.

License

MIT