anu - react

react

import { options } from "./util";

import { Children } from "./Children";

import * as eventSystem from "./event";

import { PropTypes } from "./PropTypes";

import { Component } from "./Component";

import { win as window } from "./browser";

import { createClass } from "./createClass";

import { cloneElement } from "./cloneElement";

import { PureComponent } from "./PureComponent";

import { createElement } from "./createElement";

import { render, findDOMNode, isValidElement, unmountComponentAtNode, unstable_renderSubtreeIntoContainer } from "./diff";

var React = {

version: "VERSION",

render,

options,

PropTypes,

Children, //为了react-redux

Component,

eventSystem,

findDOMNode,

createClass,

createElement,

cloneElement,

PureComponent,

isValidElement,

unmountComponentAtNode,

unstable_renderSubtreeIntoContainer,

createFactory(type) {

console.warn("createFactory将被废弃"); // eslint-disable-line

var factory = createElement.bind(null, type);

factory.type = type;

return factory;

}

};

window.React = window.ReactDOM = React;

export default React;

以上是 anu - react 的全部内容, 来源链接: utcz.com/z/383501.html

回到顶部