/legacy-compat

React 15 compatibility layer for Preact

Primary LanguageJavaScriptMIT LicenseMIT

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