Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
81152 views
1
/**
2
* Copyright 2013-2014, Facebook, Inc.
3
* All rights reserved.
4
*
5
* This source code is licensed under the BSD-style license found in the
6
* LICENSE file in the root directory of this source tree. An additional grant
7
* of patent rights can be found in the PATENTS file in the same directory.
8
*
9
* @providesModule ReactWithAddons
10
*/
11
12
/**
13
* This module exists purely in the open source project, and is meant as a way
14
* to create a separate standalone build of React. This build has "addons", or
15
* functionality we've built and think might be useful but doesn't have a good
16
* place to live inside React core.
17
*/
18
19
"use strict";
20
21
var LinkedStateMixin = require('LinkedStateMixin');
22
var React = require('React');
23
var ReactComponentWithPureRenderMixin =
24
require('ReactComponentWithPureRenderMixin');
25
var ReactCSSTransitionGroup = require('ReactCSSTransitionGroup');
26
var ReactTransitionGroup = require('ReactTransitionGroup');
27
var ReactUpdates = require('ReactUpdates');
28
29
var cx = require('cx');
30
var cloneWithProps = require('cloneWithProps');
31
var update = require('update');
32
33
React.addons = {
34
CSSTransitionGroup: ReactCSSTransitionGroup,
35
LinkedStateMixin: LinkedStateMixin,
36
PureRenderMixin: ReactComponentWithPureRenderMixin,
37
TransitionGroup: ReactTransitionGroup,
38
39
batchedUpdates: ReactUpdates.batchedUpdates,
40
classSet: cx,
41
cloneWithProps: cloneWithProps,
42
update: update
43
};
44
45
if (__DEV__) {
46
React.addons.Perf = require('ReactDefaultPerf');
47
React.addons.TestUtils = require('ReactTestUtils');
48
}
49
50
module.exports = React;
51
52