Example with react doesn't work
Closed this issue · 1 comments
ymatuhin commented
This doesn't work. But it works ok if I name props that way <ReactComponent MyComponent={MyComponent} />
.
import React from 'react'
import { ReactComponent } from './contents/the-doc.md'
import { MyComponent } from './my-component'
function MyReactApp() {
return (
<div>
<ReactComponent my-component={MyComponent} />
</div>
}