import React, { useState } from "react"; import Tiptap from "./Tiptap"; import { v4 as uuidv4 } from "uuid"; const NotePicker = ({ content, setContent }) => { // const [content, setContent] = useState("
Hello World! 🌎️
"); const handleContentChange = (reason) => { setContent(reason); }; const handleSubmit = (e) => { e.preventDefault(); const data = { id: uuidv4(), content: content, }; console.log(data); // console.log("content : " + content); }; // console.log("content : " + content); return ( ); }; export default NotePicker;