import './styles.scss' import { EditorContent, useEditor } from '@tiptap/react' import StarterKit from '@tiptap/starter-kit' import React from 'react' import ReactComponent from './Extension.js' export default () => { const editor = useEditor({ extensions: [StarterKit, ReactComponent], content: `

This is still the text editor you’re used to, but enriched with node views.

Did you see that? That’s a React component. We are really living in the future.

`, }) return }