Skip to content

Expose React.addons.* as react/addons/* on npm and deprecate react/addons #3780

@sophiebits

Description

@sophiebits

The current system of packaging react/addons isn't great because you need to pull in all the addons even if you just want to use one of them. Instead, let's make it so you can do require('react/addons/TransitionGroup') and similar.

This should be as simple as adding a few files to build/npm-react that require the (private) internal modules.

// npm-react/addons/TransitionGroup.js
module.exports = require('../lib/ReactTransitionGroup.js');

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions