Replies: 1 comment
-
try change your second try with following code: import { useEffect } from "react"
export default function Editor({ id }) {
useEffect(() => {
const { default: EditorJS } = await import("@editorjs/editorjs");
const editor = new EditorJS({
holder: id,
})
}, [])
return (
<div id={id} />
)
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there,
I'm trying to get Editor.js to work within a Remix app without success yet.
I'm looking for some help in order to get it work.
I've tried several alternatives which are all in the same repo.
First try: using
react-editor-js
The code is available on branch
react-editor-js
on the repo.This does nothing more than displaying an empty
div
. No errors displayed anywhere.Second try: using Editor.js directly
The code is available on branch
editor.js
on the repo.I encounter errors during build time:
If anyone could provide some help with any working solution, it would be wonderful.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions