Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Latest commit

 

History

History
29 lines (25 loc) · 998 Bytes

README.md

File metadata and controls

29 lines (25 loc) · 998 Bytes

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