RIP21 / react-simplemde-editor

React wrapper for simplemde (easymde) markdown editor

Home Page:https://react-simplemde-edtior.netlify.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: _this.simpleMde.codemirror is undefined

A7U opened this issue · comments

commented

I'm not sure why, but this keeps happening.

import SimpleMDEReact from "react-simplemde-editor";
import "easymde/dist/easymde.min.css";

export default function MK() {
    return(<SimpleMDEReact/>)
}

I'm on NextJS but it's a framework on top of react, so it should work with nextjs too right?

I wouldn't recommend rendering SimpleMDEReact in the SSR environment, it makes no sense. You should guard it with some isSsr boolean so it renders on the client only.

Here are examples.
#148
#89
#73