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

1.5.9 • Public • Published

Travis Build Status Coverage Status

zreact

copy to preact

Differ from preact

  • source is typescript
  • render return (null | undefined | boolean) not is a empty text and not render dom but devtools has vnode
  • props.children is empty not is [] is a null
  • add react api:
    • PureComponent
    • createClass
    • createFactory
    • createPortal
    • findDOMNode
    • isValidElement
    • unmountComponentAtNode
    • unstable_renderSubtreeIntoContainer
    • Children
  • add react 16 api:
    • createRef
    • Component.getDerivedStateFromProps
  • deprecated:
    • Component.prototype.componentWillMount
    • Component.prototype.componentWillReceiveProps
    • Component.prototype.componentWillUpdate

/zreact/

    Package Sidebar

    Install

    npm i zreact

    Weekly Downloads

    39

    Version

    1.5.9

    License

    MIT

    Unpacked Size

    1.01 MB

    Total Files

    50

    Last publish

    Collaborators

    • zeromake