Mark hoisted react constant elements as #__PURE__ (#7372)
This commit is contained in:
committed by
GitHub
parent
d75a6b8468
commit
d283324f8a
@@ -1,6 +1,8 @@
|
||||
function fn(Component) {
|
||||
var data = "prop",
|
||||
_ref = <Component prop={data} />;
|
||||
_ref =
|
||||
/*#__PURE__*/
|
||||
<Component prop={data} />;
|
||||
|
||||
return () => _ref;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user