Files
react/addons/react-create-class/index.js
T
Andrew Clark 60a795575f Create react-create-class package
Extract createClass into a separate package so we can deprecate it in
version 16.
2017-03-21 14:28:09 -07:00

23 lines
568 B
JavaScript

/**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
'use strict';
var factory = require('./factory');
// Hack to grab NoopUpdateQueue from isomorphic React
var ReactNoopUpdateQueue = new ReactComponent().updater;
module.exports = factory(
React.Component,
React.isValidElement,
ReactNoopUpdateQueue
);