Either due to lower parsing costs or better type inference, this seems to perform better than direct object inlining. (All along, the main win was skipping a loop through props, not avoiding a function call.)
4 lines
157 B
JavaScript
4 lines
157 B
JavaScript
babelHelpers.createRawReactElement("div", null, {
|
|
className: "foo",
|
|
children: [bar, babelHelpers.createRawReactElement(Baz, "baz", Baz.defaultProps)]
|
|
}); |