Skip to content

Commit

Permalink
getstate 위치 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jch1223 committed Dec 27, 2024
1 parent c3cadba commit bfdeee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/posts/PostForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bfdeee5

Please sign in to comment.