Skip to content

Commit cfa3dc9

Browse files
authored
Merge pull request #12 from karlhorky/patch-1
Fix props passing in production mode
2 parents aa7540f + 1fbc98d commit cfa3dc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const withChaos = (
1414
console.warn(
1515
`You tried to use React Chaos in production. You probably didn't mean to do this. Chaos will not occur in production.`
1616
);
17-
return () => <WrappedComponent />;
17+
return WrappedComponent;
1818
}
1919

2020
if (process.env.NODE_ENV === 'production' && runInProduction) {

0 commit comments

Comments
 (0)