import React, {useState} from 'react'; import MDContent from "./MDContent"; import {v4 as uuidv4} from 'uuid'; function MDContainer({post}) { const [posts, setPosts] = useState([post]); function handleClick(content) { console.log(content) setPosts(prevPosts => { return [...prevPosts, content] }) } return (
{posts.map(p => ( ))}
); } export default MDContainer;