docz icon indicating copy to clipboard operation
docz copied to clipboard

<Playground> is not rendering anything inside

Open alinazamorskaya opened this issue 4 years ago • 1 comments

For some reason the <Playground> component is not rendering anything inside it. Would you have any idea why?

This is my Alert.mdx file:

---
name: Alert
menu: Components
---

import { Playground, Props } from 'docz'
import { Alert } from './Alert'

# Alert

## Properties

<Props of={Alert} />

<Playground>
    Test
</Playground>

It is rendering the playground box but there are nothing inside it. In this case I would expect to see the word Test at least. But, if I take Test out of the <Playground> component then it renders.

alinazamorskaya avatar Aug 06 '20 02:08 alinazamorskaya

Duplicates #1552.

adamkudrna avatar Aug 06 '20 18:08 adamkudrna