You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to allow us to quickly reproduce you issue please include a link to a reproduction repository.
Expected behavior
Render component normally or at least show an error message about the limitation
Environment
OS: macOS 10.14
Node/npm version: Node 8/npm 5
Additional context/Screenshots
The text was updated successfully, but these errors were encountered:
brunolemos
changed the title
Importing components with a number in the name fail silently
Rendering components with a number in the name fail silently
Aug 14, 2018
took a while for me to figure it out as well as it is weird.
this is my work around for now.. if you need to use it in the MD then use as and rename it. For actual example usage just use <Playground/> no issues.
import { Playground, Props } from 'docz'
import { H1 } from './index'
import { H1 as HeadingOne } from './index'
import Text from '../text'
# Heading
Hello there
<HeadingOne>This is H1 heading</HeadingOne>
## Basic usage
<Playground>
<H1>This is H1 heading</H1>
</Playground>
Bug Report
Describe the bug
If you import like this:
import { H1 } from './H1'
and try to render<H1>Title</H1>
, it won't render anything and won't show any error.If you remove the number like this
import { H1 as HH } from './HH'
and try to render<HH>Title</HH>
, it renders correctly.Maybe it's a bug in mdx itself?
To Reproduce
In order to allow us to quickly reproduce you issue please include a link to a reproduction repository.
Expected behavior
Render component normally or at least show an error message about the limitation
Environment
Additional context/Screenshots
The text was updated successfully, but these errors were encountered: