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

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

This is editable.

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

`, }) return ( ) }