import React , { useState } from 'react' ; import type { Value } from '@react-page/editor' ; import Editor from '@react-page/editor' ; import slate from '@react-page/plugins-slate' ; import image from '@react-page/plugins-image' ; const cellPlugins = [ slate ( ) , image ] ; const Bare = ( ) => { const [ value ] = useState < Value > ( null ) ; return ( < > < Editor cellPlugins = { cellPlugins } value = { value } / > < />); } ; export default Bare ;