weeact
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

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

    • [x] Functional stateless component
    • [x] Template for common DOM elements (h1, p, div)
    • [x] Build virtual tree of components and dom nodes (initial render)
    • [x] 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

/weeact/

    Package Sidebar

    Install

    npm i weeact

    Weekly Downloads

    0

    Version

    0.0.6

    License

    MIT

    Unpacked Size

    28.1 kB

    Total Files

    17

    Last publish

    Collaborators

    • rencire