hmsk/vite-plugin-markdown

Example with react doesn't work

Closed this issue · 1 comments

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>
}
hmsk commented

Thanks for pointing this out. You're right, that should be MyComponent
345dcdf