Skip to content

fulvaz/mini-vdom

Repository files navigation

Deadly simple react implementation

intro

  • easy to read(learn)
  • write with typescript
  • easy extend

need basic knowledge of OOP.

how to dev

npm run dev run dev server npm run build well

TODOS

  • life cycles

    • mount

    • constructor

    • getDerivedStateFromProps()

    • render

    • componentDidMount

    • update

    • getDerivedStateFromProps

    • shouldComponentUpdate()

    • render()

    • getSnapshotBeforeUpdate()

    • componentDidUpdate()

    • unmount

    • componentWillUnmount()

    • forceUpdate()

  • event system

  • diff done

  • security issue

  • implement 'ref'

References

deadly simple react have fun with jsx

About

React virtual dom research🔬

Resources

Stars

Watchers

Forks

Packages

No packages published