Skip to content

Commit

Permalink
docs: fix variable name
Browse files Browse the repository at this point in the history
Fixes #157
  • Loading branch information
petyosi committed Nov 3, 2023
1 parent 18212f0 commit c71cee4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ export default function InitializedMDXEditor({
// ForwardRefEditor.tsx

// This is the only place InitializedMDXEditor is imported directly.
const MDEditor = dynamic(() => import("./InitializedMDXEditor"), {
const Editor = dynamic(() => import("./InitializedMDXEditor"), {
// Make sure we turn SSR off
ssr: false,
});

// This is what is imported by other components. Pre-initialized with plugins, and ready
// to accept other props, including a ref.
export const ForwardRefEditor = forwardRef<MDXEditorMethods, MDXEditorProps>(
(props, ref) => <ForwardRefEditor {...props} editorRef={ref} />,
(props, ref) => <Editor {...props} editorRef={ref} />,
);

// TS complains without the following line
Expand Down

0 comments on commit c71cee4

Please sign in to comment.