zreact
v1.5.9
Published
React like,copy by preact
Downloads
18
Maintainers
Readme
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 anull
- 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