Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
canvas
/
node_modules
/
format-message
/
Filename :
react.js
back
Copy
// @flow 'use strict' var React = require('react') var formatChildren = require('./base-format-children') function applyChildren (key/*: string */, element/*: any */, children/*: ?mixed[] */) { if (process.env.NODE_ENV !== 'production' && !React.isValidElement(element)) { throw new Error(JSON.stringify(element) + ' is not a valid element') } // $FlowFixMe it doesn't think any arguments are passed return React.cloneElement.apply( React, [ element, { key: element.key || key } ].concat(children || []) ) } exports.formatChildren = formatChildren.bind(null, applyChildren)