Skip to content

Commit 1fbc98d

Browse files
authored
Fix props passing in production mode
Closes #8
1 parent aa7540f commit 1fbc98d

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)