Editor
import Editor from 'src/components/editor';
export function App() {
const [value, setValue] = useState('');
const onChange = (value) => {
setValue(value);
};
return <Editor simple id="editor-id" value={value} onChange={onChange} placeholder="Type a message" />;
}
Related files:
src/components/editor
src/App.js
orsrc/pages/_app.js
orsrc/app/layout.js
import 'react-quill/dist/quill.snow.css';