Skip to content

Commit

Permalink
docs: fix broken CRA example link (#191)
Browse files Browse the repository at this point in the history
Fixed broken link to the CRA example repo.
Added example for CRA
  • Loading branch information
vishnusatheeshpulickal authored Nov 23, 2023
1 parent cf4723c commit cedaf36
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,20 @@ Check the working example that uses dynamic imports in the [MDX editor in Remix

### Create React App

There's nothing specific about the CRA setup. See the [MDX editor in CRA GitHub sample repository for a working example](https://github.com/mdx-editor/mdx-editor-in-cra).
Here's a minimal example for App.tsx:

```tsx
import '@mdxeditor/editor/style.css'
import {MDXEditor, headingsPlugin} from '@mdxeditor/editor';

function App() {
return <MDXEditor markdown={'# Hello World'} plugins={[headingsPlugin()]} />;
}

export default App
```

See the [MDX editor in CRA GitHub sample repository for a working example](https://github.com/mdx-editor/mdx-editor-in-cra).

## Basic usage

Expand Down

0 comments on commit cedaf36

Please sign in to comment.