# all files / src/ React.js

100% Statements 2/2
100% Branches 0/0
100% Functions 0/0
100% Lines 2/2

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43

    1×

    1×

     import {
        createElement
    } from './createElement'
    import {
        cloneElement
    } from './cloneElement'

    import {
        PureComponent
    } from './PureComponent'
    import {
        Component
    } from './Component'
    import {
        Children
    } from './compat'
    import {
        win as window
    } from './browser'

    import {
        options
    } from './util'

    import {
        render
    } from './diff'

    var React = {
        Children, //为了react-redux
        render,
        options,
        version: "VERSION",
        createElement,
        cloneElement,
        PureComponent,
        Component
    }

    window.ReactDOM = React

    export default React