| 17 | var needsCreateElement = getBooleanQueryParam('needsCreateElement'); |
| 18 | |
| 19 | function unmountComponent(node) { |
| 20 | // ReactDOM was moved into a separate package in 0.14 |
| 21 | if (needsReactDOM) { |
| 22 | ReactDOM.unmountComponentAtNode(node); |
| 23 | } else if (React.unmountComponentAtNode) { |
| 24 | React.unmountComponentAtNode(node); |
| 25 | } else { |
| 26 | // Unmounting for React 0.4 and lower |
| 27 | React.unmountAndReleaseReactRootNode(node); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | function createElement(value) { |
| 32 | // React.createElement replaced function invocation in 0.12 |