khanghoang / tihon

Tihon (aka "Tí hon") is a small React-like view library for research and learning purposes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tihon

Heavily inspired by MQuy/qreact

Building React From Scratch

Terminology

  • Component Class
  • Component Instance this has this.setState
  • Element, like-weight object returned from render function

APIs

  • React.createElement(type, config, children)
  • React.Component
  • React.render

Component class API

  • constructor()
  • render()
  • setState()
  • this.props
  • this.state

References

  1. https://github.com/MQuy/qreact
  2. React v15.4.0
  3. Building React From Scratch Paul O Shannessy 2.1 https://github.com/zpao/building-react-from-scratch
  4. https://reactjs.org/docs/react-api.html
  5. Custom react render
  6. https://reactjs.org/blog/2015/12/18/react-components-elements-and-instances.html
  7. https://reactjs.org/docs/jsx-in-depth.html
  8. https://reactjs.org/docs/implementation-notes.html
  9. https://giamir.com/what-is-react-fiber
  10. React Suspense implementation by Kent C. Dodds : https://www.youtube.com/watch?v=7LmrS2sdMlo
  11. https://github.com/sw-yx/fresh-async-react
  12. https://github.com/acdlite/react-fiber-architecture
  13. https://reactjs.org/docs/codebase-overview.html

About

Tihon (aka "Tí hon") is a small React-like view library for research and learning purposes.


Languages

Language:JavaScript 100.0%