From cedaf36ef454515c830e459adff6e872a57b921c Mon Sep 17 00:00:00 2001 From: Vishnu Satheesh <70451086+vishnusatheeshpulickal@users.noreply.github.com> Date: Thu, 23 Nov 2023 11:36:43 +0530 Subject: [PATCH] docs: fix broken CRA example link (#191) Fixed broken link to the CRA example repo. Added example for CRA --- docs/getting-started.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/getting-started.md b/docs/getting-started.md index e94c0525..5a731319 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -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 ; +} + +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