Describe the bug
I get error React is not defined when using Fragment JSX syntax(<></>) inside Playground component and with typescript: true in doczrc.js.
To Reproduce
Here is a reproduction with docz basic example. This file
or steps:
typescript: true in doczrc.jsAlert.mdx wrap Alert component inside Playground with React Fragment using JSX syntax:<Playground>
<>
<Alert>Some message</Alert>
</>
</Playground>
ReferenceError: React is not defined
Expected behavior
Component renders without errors in React Fragment with JSX syntax.
Environment
Additional context/Screenshots
It works if I use React.Fragment and works if typescript options is not set to true. TypeScript should already come with the support for JSX fragment syntax starting from 2.6.2, according to docs here. Maybe it is related to how Playground parses the code. 馃し鈥嶁檪
Here is a screenshot from browser error:

I'm seeing this as well, and switched to using React.Fragment for now.
Thanks for reporting !
This looks related to Gatsby, I opened an issue for it here : https://github.com/gatsbyjs/gatsby/issues/20030
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hey, should it still stay active until the related issue in Gatsby not resolved?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Still happening in August 2020