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.)
3 lines
119 B
JavaScript
3 lines
119 B
JavaScript
babelHelpers.createRawReactElement(Foo, "foo", babelHelpers.defaultProps(Foo.defaultProps, {
|
|
"data-value": "bar"
|
|
})); |