mirror of
https://github.com/zhigang1992/docz.git
synced 2026-04-24 05:06:09 +08:00
fix(docz-theme-default): rename playground container to avoid conflicts (#429)
This commit is contained in:
@@ -413,13 +413,13 @@ class RenderBase extends Component<RenderProps, RenderState> {
|
||||
|
||||
private transformCode(code: string): string {
|
||||
return `
|
||||
const App = ({ children }) => (
|
||||
const DoczApp = ({ children }) => (
|
||||
<React.Fragment>
|
||||
{children && typeof children === 'function' ? children() : children}
|
||||
</React.Fragment>
|
||||
)
|
||||
|
||||
render(<App>${code}</App>)
|
||||
render(<DoczApp>${code}</DoczApp>)
|
||||
`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user