0.0.6 • Published 7 years ago

weeact v0.0.6

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

weeact

A wee little implemention of react.js for personal learning.

Quick start

Install:

npm install

Demo

npm run demo

Develop

// build src files
npm run watch
// run tests on src changes
npm run test.wa

TODO

  • Vdom syntax

    • Functional stateless component
    • Template for common DOM elements (h1, p, div)
    • Build virtual tree of components and dom nodes (initial render)
    • Initial render on page
  • Components

    • setState()
    • Lifecycle events:
      • Mounting:
        • constructor()
        • componentWillMount()
        • render()
        • componentDidMount()
      • Updating:
        • componentWillReceiveProps()
        • cshouldComponentUpdate()
        • componentWillUpdate()
        • render()
        • componentDidUpdate()
      • Unmounting:
        • componentWillUnmount()
      • Error Handling:
        • componentDidCatch()
  • Rendering

    • Naively render all of virtual tree
    • Sub-tree Rendering
    • Batching
    • Diff algorithm:

      • Elements:
        • different type
        • same type
      • Components:
        • different type
        • same type
      • Keys
  • Event Delegation

Resources

React

typescript

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.1

7 years ago