fix(docz-theme-default): rename playground container to avoid conflicts (#429)

This commit is contained in:
blackdahila
2018-10-30 14:53:21 +01:00
committed by Pedro Nauck
parent 10a3eda89d
commit 86845bfd5a

View File

@@ -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>)
`
}