From bfdeee5d07a8d6108e4e85943f711b141d40aeb3 Mon Sep 17 00:00:00 2001 From: jch1223 Date: Fri, 27 Dec 2024 23:48:47 +0900 Subject: [PATCH] =?UTF-8?q?getstate=20=EC=9C=84=EC=B9=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/posts/PostForm.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/posts/PostForm.jsx b/src/components/posts/PostForm.jsx index 4068d30..4d73149 100644 --- a/src/components/posts/PostForm.jsx +++ b/src/components/posts/PostForm.jsx @@ -3,9 +3,9 @@ import { createVNode } from "../../lib"; import { globalStore } from "../../stores"; export const PostForm = () => { - const handleClick = () => { - const { posts, currentUser } = globalStore.getState(); + const { posts, currentUser } = globalStore.getState(); + const handleClick = () => { globalStore.setState({ posts: [ ...posts,