Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/preactjs/legacy-compat

React 15 compatibility layer for Preact
https://github.com/preactjs/legacy-compat

preact

Last synced: 3 months ago
JSON representation

React 15 compatibility layer for Preact

Awesome Lists containing this project

README

        

# `@preact/legacy-compat` npm

Extended compatibility layer for Preact, supporting deprecated and removed APIs from React 15 and prior.

This module provides a bridging solution for older codebases. For new projects, please use [preact/compat].

### Extended Compatibility Features:

- `createClass()` - including mixins, getInitialState, etc
- string refs
- Built-in PropTypes (`React.PropTypes`)
- [Immutable.js] support
- `renderSubtreeIntoContainer()`

[preact/compat]: https://preactjs.com/guide/v10/switching-to-preact
[immutable.js]: https://immutable-js.github.io/immutable-js/