UNPKG

687 BJavaScriptView Raw
1/**
2 * Copyright (c) 2013-present, Facebook, Inc.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 *
8 */
9
10'use strict';
11
12var _require = require('./ReactFiber'),
13 createFiberFromElementType = _require.createFiberFromElementType;
14
15exports.createReifiedYield = function (yieldNode) {
16 var fiber = createFiberFromElementType(yieldNode.continuation, yieldNode.key);
17 return {
18 continuation: fiber,
19 props: yieldNode.props
20 };
21};
22
23exports.createUpdatedReifiedYield = function (previousYield, yieldNode) {
24 return {
25 continuation: previousYield.continuation,
26 props: yieldNode.props
27 };
28};
\No newline at end of file