We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 692e8af commit 7bce56eCopy full SHA for 7bce56e
src/rsg-components/Preview/Preview.js
@@ -9,7 +9,8 @@ import splitExampleCode from '../../utils/splitExampleCode';
9
/* eslint-disable no-invalid-this, react/no-multi-comp */
10
11
const compileCode = (code, config) => transform(code, config).code;
12
-const wrapCodeInFragment = code => `const __f = React.Fragment || <div />; <__f>${code}</__f>;`;
+const wrapCodeInFragment = code =>
13
+ `const Fragment__ = React.Fragment || 'div'; <Fragment__>${code}</Fragment__>;`;
14
15
// Wrap everything in a React component to leverage the state management
16
// of this component
0 commit comments