react / react-0.13.3 / examples / basic-commonjs / node_modules / reactify / node_modules / react-tools / src / browser / ReactWithAddons.js
81152 views/**1* Copyright 2013-2014, Facebook, Inc.2* All rights reserved.3*4* This source code is licensed under the BSD-style license found in the5* LICENSE file in the root directory of this source tree. An additional grant6* of patent rights can be found in the PATENTS file in the same directory.7*8* @providesModule ReactWithAddons9*/1011/**12* This module exists purely in the open source project, and is meant as a way13* to create a separate standalone build of React. This build has "addons", or14* functionality we've built and think might be useful but doesn't have a good15* place to live inside React core.16*/1718"use strict";1920var LinkedStateMixin = require('LinkedStateMixin');21var React = require('React');22var ReactComponentWithPureRenderMixin =23require('ReactComponentWithPureRenderMixin');24var ReactCSSTransitionGroup = require('ReactCSSTransitionGroup');25var ReactTransitionGroup = require('ReactTransitionGroup');26var ReactUpdates = require('ReactUpdates');2728var cx = require('cx');29var cloneWithProps = require('cloneWithProps');30var update = require('update');3132React.addons = {33CSSTransitionGroup: ReactCSSTransitionGroup,34LinkedStateMixin: LinkedStateMixin,35PureRenderMixin: ReactComponentWithPureRenderMixin,36TransitionGroup: ReactTransitionGroup,3738batchedUpdates: ReactUpdates.batchedUpdates,39classSet: cx,40cloneWithProps: cloneWithProps,41update: update42};4344if (__DEV__) {45React.addons.Perf = require('ReactDefaultPerf');46React.addons.TestUtils = require('ReactTestUtils');47}4849module.exports = React;505152