legacy-compat icon indicating copy to clipboard operation
legacy-compat copied to clipboard

React 15 compatibility layer for Preact

@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()