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

This is an example of a Medium-like editor. Enter a new line and some buttons will appear.

`, }) return ( <> {editor && } ) }