var React = require("react"); function A(props) { var copyOfProps = Object.assign({}, props.bag); Object.defineProperty(copyOfProps, "y", { get() { return 30; }, }); return (
Hello {copyOfProps.x} {copyOfProps.y}
); } function App(props) { var copyOfProps = Object.assign({}, props, { x: 20 }); return ; } App.getTrials = function(renderer, Root) { renderer.update(); return [["simple render with object assign", renderer.toJSON()]]; }; if (this.__optimizeReactComponentTree) { __optimizeReactComponentTree(App); } module.exports = App;