Packages

react

19.3.1 · 14 Oct 2026MIT275.7M / weekRepositoryHomepagenpmAtom feed

Your version

0.12.0

28 Oct 2014Where it was published

0.14.10 is the newest release of 0.12.x.

In short

8 breaking11 deprecated5 new11 fixed

  • Breaking

    key and ref moved off props object, now accessible on the element directly

  • Breaking

    React is now BSD licensed with accompanying Patents grant

  • Breaking

    Default prop resolution has moved to Element creation time instead of mount time, making them effectively static

  • Breaking

    React.__internals is removed - it was exposed for DevTools which no longer needs access

  • Breaking

    Composite Component functions can no longer be called directly - they must be wrapped with React.createFactory first. This is handled for you when using JSX.

  • Breaking

    React.addons.update uses assign instead of copyProperties which does hasOwnProperty checks. Properties on prototypes will no longer be updated correctly.

  • Breaking

    Enforced convention: lower case tag names are always treated as HTML tags, upper case tag names are always treated as composite components

  • Breaking

    JSX no longer transforms to simple function calls

Security

1 advisory affects 0.12.0

Release note

React Core

Breaking Changes

  • Breaking

    key and ref moved off props object, now accessible on the element directly

  • Breaking

    React is now BSD licensed with accompanying Patents grant

  • Breaking

    Default prop resolution has moved to Element creation time instead of mount time, making them effectively static

  • Breaking

    React.__internals is removed - it was exposed for DevTools which no longer needs access

  • Breaking

    Composite Component functions can no longer be called directly - they must be wrapped with React.createFactory first. This is handled for you when using JSX.

New Features

  • Spread operator ({...}) introduced to deprecate this.transferPropsTo

  • Added support for more HTML attributes: acceptCharset, classID, manifest

Deprecations

  • Deprecated

    React.renderComponent --> React.render

  • Deprecated

    React.renderComponentToString --> React.renderToString

  • Deprecated

    React.renderComponentToStaticMarkup --> React.renderToStaticMarkup

  • Deprecated

    React.isValidComponent --> React.isValidElement

  • Deprecated

    React.PropTypes.component --> React.PropTypes.element

  • Deprecated

    React.PropTypes.renderable --> React.PropTypes.node

  • Deprecated

    DEPRECATED React.isValidClass

  • Deprecated

    DEPRECATED instance.transferPropsTo

  • Deprecated

    DEPRECATED Returning false from event handlers to preventDefault

  • Deprecated

    DEPRECATED Convenience Constructor usage as function, instead wrap with React.createFactory

  • Deprecated

    DEPRECATED use of key={null} to assign implicit keys

Bug Fixes

  • Better handling of events and updates in nested results, fixing value restoration in "layered" controlled components

  • Correctly treat event.getModifierState as case sensitive

  • Improved normalization of event.charCode

  • Better error stacks when involving autobound methods

  • Removed DevTools message when the DevTools are installed

  • Correctly detect required language features across browsers

  • Fixed support for some HTML attributes:

    • list updates correctly now

    • scrollLeft, scrollTop removed, these should not be specified as props

  • Improved error messages

React With Addons

New Features

  • React.addons.batchedUpdates added to API for hooking into update cycle

Breaking Changes

  • Breaking

    React.addons.update uses assign instead of copyProperties which does hasOwnProperty checks. Properties on prototypes will no longer be updated correctly.

Bug Fixes

  • Fixed some issues with CSS Transitions

JSX

Breaking Changes

  • Breaking

    Enforced convention: lower case tag names are always treated as HTML tags, upper case tag names are always treated as composite components

  • Breaking

    JSX no longer transforms to simple function calls

New Features

  • @jsx React.DOM no longer required

  • Spread ({...}) operator introduced to allow easier use of props

Bug Fixes

  • JSXTransformer: Make sourcemaps an option when using APIs directly (eg, for react-rails)

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.