Socket
Socket
Sign inDemoInstall

react-addons

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-addons

Simple packaging of react addons to avoid fiddly 'react/addons' npm module.


Version published
Maintainers
1
Created
Source

react-addons

This is an npm package containing only the react addons, and not the full react build itself (although it requires it). This will play much more nicely with browserify and other build tools than the old require('react/addons') style.

This package is a direct copy/paste of the files in lib/, with the paths to /React changed to require the base react module. If this module gets significantly out of date, it should be simple to rebuild using the React source.

Example Usage


// Previously, you might access React Addons with this path.
var React = require('react/addons');

// Now, you can access it this way:
var addons = require('react-addons');

// And the addons are available directly on the module, like so:
var classSet = require('react-addons').classSet;

// Now, you don't have to worry about changing all your `require` statements
// throughout your app to use `react/addons`!

Keywords

FAQs

Package last updated on 06 Feb 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc