feature: Support pure expressions in transform-react-constant-elements (#4812)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
// https://github.com/facebook/react/issues/3226
|
||||
// Not safe to reuse because it is mutable
|
||||
function render() {
|
||||
return <div style={{ width: 100 }} />;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// https://github.com/facebook/react/issues/3226
|
||||
// Not safe to reuse because it is mutable
|
||||
function render() {
|
||||
return <div style={{ width: 100 }} />;
|
||||
}
|
||||
Reference in New Issue
Block a user