Skip to content
JavaScript TypeScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
server-render
src
test
types
.babelrc
.editorconfig
.gitignore
.travis.yml
CHANGELOG.md
LICENSE
README.md
package.json
prop-types.js
tsconfig.json
tslint.json
typings.json
yarn.lock

README.md

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
You can’t perform that action at this time.