{"id":25898,"date":"2024-10-27T06:48:23","date_gmt":"2024-10-27T06:48:23","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=25898"},"modified":"2024-11-26T07:51:50","modified_gmt":"2024-11-26T07:51:50","slug":"%eb%a6%ac%ec%95%a1%ed%8a%b8-%ea%b0%95%ec%a2%8c-to-do-%ec%95%b1-usereducer-%ec%82%ac%ec%9a%a9-%ec%95%b1-%ec%97%85%ea%b7%b8%eb%a0%88%ec%9d%b4%eb%93%9c","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/25898\/","title":{"rendered":"\ub9ac\uc561\ud2b8 \uac15\uc88c: To Do \uc571 useReducer \uc0ac\uc6a9 \uc571 \uc5c5\uadf8\ub808\uc774\ub4dc"},"content":{"rendered":"<p><body><\/p>\n<article>\n<p>\ub9ac\uc561\ud2b8\ub294 \ud604\ub300 \uc6f9 \uac1c\ubc1c\uc758 \uc911\uc694\ud55c \ub3c4\uad6c\ub85c \uc790\ub9ac\uc7a1\uc558\uc2b5\ub2c8\ub2e4. \ud2b9\ud788, \uc0c1\ud0dc \uad00\ub9ac\uc5d0 \uc788\uc5b4 \ub2e4\uc591\ud55c \ubc29\ubc95\uc774 \uc788\uc9c0\ub9cc, \uadf8 \uc911 <strong>useReducer<\/strong>\ub294 \ub354 \ubcf5\uc7a1\ud55c \uc0c1\ud0dc \ub85c\uc9c1\uc744 \ud6a8\uacfc\uc801\uc73c\ub85c \uad00\ub9ac\ud560 \uc218 \uc788\ub3c4\ub85d \ub3d5\ub294 React \ud6c5\uc785\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 \uae30\ubcf8\uc801\uc778 To Do \uc571\uc744 \uc0ac\uc6a9\ud558\uc5ec useReducer\ub97c \ud65c\uc6a9\ud558\ub294 \ubc29\ubc95\uc744 \uad6c\uccb4\uc801\uc73c\ub85c \ub2e4\ub8e8\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>1. \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870<\/h2>\n<p>\uc6b0\uc120, \ud504\ub85c\uc81d\ud2b8\uc758 \uae30\ubcf8 \uad6c\uc870\ub97c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc77c\ubc18\uc801\uc73c\ub85c To Do \uc571\uc758 \uad6c\uc870\ub294 \ub2e4\uc74c\uacfc \uac19\uc774 \uad6c\uc131\ub429\ub2c8\ub2e4:<\/p>\n<pre><code>\n\/to-do-app\n|-- \/src\n|   |-- \/components\n|   |   |-- TodoItem.js\n|   |   |-- TodoList.js\n|   |   \u2514-- TodoForm.js\n|   |\n|   |-- App.js\n|   \u2514-- index.js\n|-- package.json\n|-- README.md\n        <\/code><\/pre>\n<p>\uc704 \uad6c\uc870\uc5d0\uc11c <code>TodoItem<\/code>\uc740 \uac1c\ubcc4 \ud560 \uc77c \ud56d\ubaa9\uc744 \ub098\ud0c0\ub0b4\uace0, <code>TodoList<\/code>\ub294 \ubaa8\ub4e0 \ud560 \uc77c \ubaa9\ub85d\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4. <code>TodoForm<\/code>\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc0c8\ub85c\uc6b4 \ud560 \uc77c\uc744 \ucd94\uac00\ud569\ub2c8\ub2e4.<\/p>\n<h2>2. useReducer \uc18c\uac1c<\/h2>\n<p>useReducer\ub294 \ubcf5\uc7a1\ud55c \uc0c1\ud0dc\ub97c \ub2e4\ub8f0 \ub54c \uc720\uc6a9\ud558\uba70, \ub2e4\uc74c\uacfc \uac19\uc740 \ud615\ud0dc\ub85c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>\nconst [state, dispatch] = useReducer(reducer, initialState);\n        <\/code><\/pre>\n<p><strong>state<\/strong>: \ud604\uc7ac \uc0c1\ud0dc\ub97c \ub098\ud0c0\ub0b4\uba70, <strong>dispatch<\/strong>: \uc0c1\ud0dc \uc5c5\ub370\uc774\ud2b8\ub97c \uc704\ud55c \ud568\uc218\uc785\ub2c8\ub2e4. <strong>reducer<\/strong>\ub294 \uc0c1\ud0dc\ub97c \uc5b4\ub5bb\uac8c \ubcc0\ud654\uc2dc\ud0ac\uc9c0\ub97c \uc815\uc758\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.<\/p>\n<h2>3. \uae30\ubcf8 To Do \uc571 \uad6c\ud604<\/h2>\n<p>\uba3c\uc800 \uae30\ubcf8 To Do \uc571\uc744 \uad6c\ud604\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc544\ub798 \ucf54\ub4dc\ub294 \uac04\ub2e8\ud55c \ub9ac\uc561\ud2b8 \uc571\uc73c\ub85c, \uc0ac\uc6a9\uc790\uac00 \ud560 \uc77c\uc744 \ucd94\uac00\ud558\uace0 \ubaa9\ub85d\uc744 \ubcf4\uc5ec\uc8fc\ub294 \uae30\ub2a5\uc744 \ud3ec\ud568\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>\nimport React, { useState } from 'react';\n\nconst App = () =&gt; {\n    const [todos, setTodos] = useState([]);\n    const [input, setInput] = useState('');\n\n    const addTodo = () =&gt; {\n        if (input.trim() !== '') {\n            setTodos([...todos, { text: input, completed: false }]);\n            setInput('');\n        }\n    };\n\n    const toggleTodo = (index) =&gt; {\n        setTodos(todos.map((todo, i) =&gt; \n            i === index ? { ...todo, completed: !todo.completed } : todo\n        ));\n    };\n\n    return (\n        <div>\n            <h1>\ub098\uc758 To Do \ub9ac\uc2a4\ud2b8<\/h1>\n            <input ==\"\" onchange=\"{(e)\" value=\"{input}\"\/> setInput(e.target.value)}\n                placeholder=\"\ud560 \uc77c\uc744 \uc785\ub825\ud558\uc138\uc694\"\n            \/&gt;\n            <button onclick=\"{addTodo}\">\ucd94\uac00<\/button>\n            <ul>\n                {todos.map((todo, index) =&gt; (\n                    <li ==\"\" key=\"{index}\" onclick=\"{()\"> toggleTodo(index)} style={{ textDecoration: todo.completed ? 'line-through' : 'none' }}&gt;\n                        {todo.text}\n                    <\/li>\n                ))}\n            <\/ul>\n        <\/div>\n    );\n};\n\nexport default App;\n        <\/code><\/pre>\n<h2>4. useReducer\ub85c \uc0c1\ud0dc \uad00\ub9ac\ud558\uae30<\/h2>\n<p>\uc774\uc81c \uc704\uc758 \ucf54\ub4dc\ub97c useReducer\ub85c \uac1c\uc120\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc0c1\ud0dc\ub97c \ubcf5\uc7a1\ud558\uac8c \uad00\ub9ac\ud560 \ud544\uc694\uac00 \uc788\uc744 \ub54c, useReducer\uac00 \ub354 \uc720\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code>\nimport React, { useReducer } from 'react';\n\nconst initialState = { todos: [] };\n\nconst reducer = (state, action) =&gt; {\n    switch (action.type) {\n        case 'ADD_TODO':\n            return { \n                ...state, \n                todos: [...state.todos, { text: action.payload, completed: false }] \n            };\n        case 'TOGGLE_TODO':\n            return {\n                ...state,\n                todos: state.todos.map((todo, index) =&gt;\n                    index === action.payload ? { ...todo, completed: !todo.completed } : todo\n                ),\n            };\n        default:\n            return state;\n    }\n};\n\nconst App = () =&gt; {\n    const [state, dispatch] = useReducer(reducer, initialState);\n    const [input, setInput] = React.useState('');\n\n    const addTodo = () =&gt; {\n        if (input.trim() !== '') {\n            dispatch({ type: 'ADD_TODO', payload: input });\n            setInput('');\n        }\n    };\n\n    return (\n        <div>\n            <h1>\ub098\uc758 To Do \ub9ac\uc2a4\ud2b8 (useReducer)<\/h1>\n            <input ==\"\" onchange=\"{(e)\" value=\"{input}\"\/> setInput(e.target.value)}\n                placeholder=\"\ud560 \uc77c\uc744 \uc785\ub825\ud558\uc138\uc694\"\n            \/&gt;\n            <button onclick=\"{addTodo}\">\ucd94\uac00<\/button>\n            <ul>\n                {state.todos.map((todo, index) =&gt; (\n                    <li ==\"\" key=\"{index}\" onclick=\"{()\"> dispatch({ type: 'TOGGLE_TODO', payload: index })} style={{ textDecoration: todo.completed ? 'line-through' : 'none' }}&gt;\n                        {todo.text}\n                    <\/li>\n                ))}\n            <\/ul>\n        <\/div>\n    );\n};\n\nexport default App;\n        <\/code><\/pre>\n<h2>5. useReducer\uc758 \uc7a5\uc810<\/h2>\n<p>useReducer\ub97c \uc0ac\uc6a9\ud558\uba74, \ub2e4\uc74c\uacfc \uac19\uc740 \uc7a5\uc810\uc774 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\ubcf5\uc7a1\ud55c \uc0c1\ud0dc \ub85c\uc9c1: \uc5ec\ub7ec \uc0c1\ud0dc \uc804\ud658\uc744 \ub3c5\ub9bd\uc801\uc778 \ud589\ub3d9\uc73c\ub85c \uad00\ub9ac\ud560 \uc218 \uc788\uc5b4 \ubcf5\uc7a1\ud55c \uc0c1\ud0dc \ub85c\uc9c1\uc744 \uba85\ud655\ud558\uac8c \uc720\uc9c0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li>\uc911\uc559 \uc9d1\uc911\uc2dd \uad00\ub9ac: \uc5ec\ub7ec \uc0c1\ud0dc \uc5c5\ub370\uc774\ud2b8\uac00 \uc788\uc744 \ub54c, \ud558\ub098\uc758 reducer \ud568\uc218\ub85c \ubaa8\ub4e0 \uc0c1\ud0dc \ubcc0\uacbd\uc744 \ucc98\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li>\uc131\ub2a5 \ud5a5\uc0c1: \ubd88\ubcc0\uc131 \uc720\uc9c0\uac00 \uc6a9\uc774\ud558\uc5ec \uc131\ub2a5 \ucd5c\uc801\ud654\uc5d0 \ub3c4\uc6c0\uc774 \ub429\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>6. \ucef4\ud3ec\ub10c\ud2b8 \ubd84\ub9ac<\/h2>\n<p>\uc774\uc81c App \ucef4\ud3ec\ub10c\ud2b8\ub97c \ub354 \uc791\uc740 \ucef4\ud3ec\ub10c\ud2b8\ub85c \ub098\ub204\uc5b4 \ucf54\ub4dc\uc758 \uac00\ub3c5\uc131\uc744 \ub192\uc5ec \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. TodoList\uc640 TodoForm \ucef4\ud3ec\ub10c\ud2b8\ub97c \ub9cc\ub4e4\uc5b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code>\nconst TodoList = ({ todos, toggleTodo }) =&gt; (\n    <ul>\n        {todos.map((todo, index) =&gt; (\n            <li ==\"\" key=\"{index}\" onclick=\"{()\"> toggleTodo(index)} \n                style={{ textDecoration: todo.completed ? 'line-through' : 'none' }}\n            &gt;\n                {todo.text}\n            <\/li>\n        ))}\n    <\/ul>\n);\n\nconst TodoForm = ({ addTodo, input, setInput }) =&gt; (\n    <div>\n        <input ==\"\" onchange=\"{(e)\" value=\"{input}\"\/> setInput(e.target.value)}\n            placeholder=\"\ud560 \uc77c\uc744 \uc785\ub825\ud558\uc138\uc694\"\n        \/&gt;\n        <button onclick=\"{addTodo}\">\ucd94\uac00<\/button>\n    <\/div>\n);\n        <\/code><\/pre>\n<h2>7. \ucd5c\uc885 \ucf54\ub4dc<\/h2>\n<pre><code>\nimport React, { useReducer, useState } from 'react';\n\nconst initialState = { todos: [] };\n\nconst reducer = (state, action) =&gt; {\n    switch (action.type) {\n        case 'ADD_TODO':\n            return { \n                ...state, \n                todos: [...state.todos, { text: action.payload, completed: false }] \n            };\n        case 'TOGGLE_TODO':\n            return {\n                ...state,\n                todos: state.todos.map((todo, index) =&gt;\n                    index === action.payload ? { ...todo, completed: !todo.completed } : todo\n                ),\n            };\n        default:\n            return state;\n    }\n};\n\nconst TodoList = ({ todos, toggleTodo }) =&gt; (\n    <ul>\n        {todos.map((todo, index) =&gt; (\n            <li ==\"\" key=\"{index}\" onclick=\"{()\"> toggleTodo(index)} \n                style={{ textDecoration: todo.completed ? 'line-through' : 'none' }}\n            &gt;\n                {todo.text}\n            <\/li>\n        ))}\n    <\/ul>\n);\n\nconst TodoForm = ({ addTodo, input, setInput }) =&gt; (\n    <div>\n        <input ==\"\" onchange=\"{(e)\" value=\"{input}\"\/> setInput(e.target.value)}\n            placeholder=\"\ud560 \uc77c\uc744 \uc785\ub825\ud558\uc138\uc694\"\n        \/&gt;\n        <button onclick=\"{addTodo}\">\ucd94\uac00<\/button>\n    <\/div>\n);\n\nconst App = () =&gt; {\n    const [state, dispatch] = useReducer(reducer, initialState);\n    const [input, setInput] = useState('');\n\n    const addTodo = () =&gt; {\n        if (input.trim() !== '') {\n            dispatch({ type: 'ADD_TODO', payload: input });\n            setInput('');\n        }\n    };\n\n    return (\n        <div>\n            <h1>\ub098\uc758 To Do \ub9ac\uc2a4\ud2b8 (useReducer)<\/h1>\n            <todoform addtodo=\"{addTodo}\" input=\"{input}\" setinput=\"{setInput}\"><\/todoform>\n            <todolist ==\"\" todos=\"{state.todos}\" toggletodo=\"{(index)\"> dispatch({ type: 'TOGGLE_TODO', payload: index })} \/&gt;\n        <\/todolist><\/div>\n    );\n};\n\nexport default App;\n        <\/code><\/pre>\n<h2>8. \ub9c8\uce58\uba70<\/h2>\n<p>\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 To Do \uc571\uc744 \ud1b5\ud574 useReducer\ub97c \uc801\uc6a9\ud558\ub294 \ubc29\ubc95\uc744 \uc54c\uc544\ubcf4\uc558\uc2b5\ub2c8\ub2e4. useReducer\ub294 \ubcf5\uc7a1\ud55c \uc0c1\ud0dc \ub85c\uc9c1\uc744 \uac04\uacb0\ud558\uac8c \uad00\ub9ac\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc8fc\uba70, \uac00\ub3c5\uc131\uacfc \uc720\uc9c0\ubcf4\uc218\uc131 \ub610\ud55c \ub192\uc785\ub2c8\ub2e4. \ub354 \ub098\uc544\uac00 \uc5ec\ub7ec \ucef4\ud3ec\ub10c\ud2b8\ub85c \uad6c\uc131\ud558\uc5ec \ucf54\ub4dc\uc758 \uad6c\uc870\ub97c \uac1c\uc120\ud560 \uc218 \uc788\uc5c8\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c \ud328\ud134\uc740 \ub354\uc6b1 \ubcf5\uc7a1\ud55c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c\ub3c4 \uc720\uc6a9\ud558\uac8c \uc0ac\uc6a9\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c \uc2dc\uac04\uc5d0\ub294 useContext\ub97c \ud65c\uc6a9\ud558\uc5ec \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<\/article>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ub9ac\uc561\ud2b8\ub294 \ud604\ub300 \uc6f9 \uac1c\ubc1c\uc758 \uc911\uc694\ud55c \ub3c4\uad6c\ub85c \uc790\ub9ac\uc7a1\uc558\uc2b5\ub2c8\ub2e4. \ud2b9\ud788, \uc0c1\ud0dc \uad00\ub9ac\uc5d0 \uc788\uc5b4 \ub2e4\uc591\ud55c \ubc29\ubc95\uc774 \uc788\uc9c0\ub9cc, \uadf8 \uc911 useReducer\ub294 \ub354 \ubcf5\uc7a1\ud55c \uc0c1\ud0dc \ub85c\uc9c1\uc744 \ud6a8\uacfc\uc801\uc73c\ub85c \uad00\ub9ac\ud560 \uc218 \uc788\ub3c4\ub85d \ub3d5\ub294 React \ud6c5\uc785\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 \uae30\ubcf8\uc801\uc778 To Do \uc571\uc744 \uc0ac\uc6a9\ud558\uc5ec useReducer\ub97c \ud65c\uc6a9\ud558\ub294 \ubc29\ubc95\uc744 \uad6c\uccb4\uc801\uc73c\ub85c \ub2e4\ub8e8\uaca0\uc2b5\ub2c8\ub2e4. 1. \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870 \uc6b0\uc120, \ud504\ub85c\uc81d\ud2b8\uc758 \uae30\ubcf8 \uad6c\uc870\ub97c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc77c\ubc18\uc801\uc73c\ub85c To Do \uc571\uc758 \uad6c\uc870\ub294 \ub2e4\uc74c\uacfc \uac19\uc774 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/25898\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\ub9ac\uc561\ud2b8 \uac15\uc88c: To Do \uc571 useReducer \uc0ac\uc6a9 \uc571 \uc5c5\uadf8\ub808\uc774\ub4dc&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[20],"tags":[],"class_list":["post-25898","post","type-post","status-publish","format-standard","hentry","category-20"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\ub9ac\uc561\ud2b8 \uac15\uc88c: To Do \uc571 useReducer \uc0ac\uc6a9 \uc571 \uc5c5\uadf8\ub808\uc774\ub4dc - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/25898\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\ub9ac\uc561\ud2b8 \uac15\uc88c: To Do \uc571 useReducer \uc0ac\uc6a9 \uc571 \uc5c5\uadf8\ub808\uc774\ub4dc - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\ub9ac\uc561\ud2b8\ub294 \ud604\ub300 \uc6f9 \uac1c\ubc1c\uc758 \uc911\uc694\ud55c \ub3c4\uad6c\ub85c \uc790\ub9ac\uc7a1\uc558\uc2b5\ub2c8\ub2e4. \ud2b9\ud788, \uc0c1\ud0dc \uad00\ub9ac\uc5d0 \uc788\uc5b4 \ub2e4\uc591\ud55c \ubc29\ubc95\uc774 \uc788\uc9c0\ub9cc, \uadf8 \uc911 useReducer\ub294 \ub354 \ubcf5\uc7a1\ud55c \uc0c1\ud0dc \ub85c\uc9c1\uc744 \ud6a8\uacfc\uc801\uc73c\ub85c \uad00\ub9ac\ud560 \uc218 \uc788\ub3c4\ub85d \ub3d5\ub294 React \ud6c5\uc785\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 \uae30\ubcf8\uc801\uc778 To Do \uc571\uc744 \uc0ac\uc6a9\ud558\uc5ec useReducer\ub97c \ud65c\uc6a9\ud558\ub294 \ubc29\ubc95\uc744 \uad6c\uccb4\uc801\uc73c\ub85c \ub2e4\ub8e8\uaca0\uc2b5\ub2c8\ub2e4. 1. \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870 \uc6b0\uc120, \ud504\ub85c\uc81d\ud2b8\uc758 \uae30\ubcf8 \uad6c\uc870\ub97c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc77c\ubc18\uc801\uc73c\ub85c To Do \uc571\uc758 \uad6c\uc870\ub294 \ub2e4\uc74c\uacfc \uac19\uc774 &hellip; \ub354 \ubcf4\uae30 &quot;\ub9ac\uc561\ud2b8 \uac15\uc88c: To Do \uc571 useReducer \uc0ac\uc6a9 \uc571 \uc5c5\uadf8\ub808\uc774\ub4dc&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/25898\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T06:48:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:51:50+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/25898\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/25898\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"\ub9ac\uc561\ud2b8 \uac15\uc88c: To Do \uc571 useReducer \uc0ac\uc6a9 \uc571 \uc5c5\uadf8\ub808\uc774\ub4dc\",\"datePublished\":\"2024-10-27T06:48:23+00:00\",\"dateModified\":\"2024-11-26T07:51:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/25898\/\"},\"wordCount\":33,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"\ub9ac\uc561\ud2b8 \uae30\ucd08 \uac15\uc88c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/25898\/\",\"url\":\"https:\/\/atmokpo.com\/w\/25898\/\",\"name\":\"\ub9ac\uc561\ud2b8 \uac15\uc88c: To Do \uc571 useReducer \uc0ac\uc6a9 \uc571 \uc5c5\uadf8\ub808\uc774\ub4dc - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T06:48:23+00:00\",\"dateModified\":\"2024-11-26T07:51:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/25898\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/25898\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/25898\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\ub9ac\uc561\ud2b8 \uac15\uc88c: To Do \uc571 useReducer \uc0ac\uc6a9 \uc571 \uc5c5\uadf8\ub808\uc774\ub4dc\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\ub9ac\uc561\ud2b8 \uac15\uc88c: To Do \uc571 useReducer \uc0ac\uc6a9 \uc571 \uc5c5\uadf8\ub808\uc774\ub4dc - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/25898\/","og_locale":"ko_KR","og_type":"article","og_title":"\ub9ac\uc561\ud2b8 \uac15\uc88c: To Do \uc571 useReducer \uc0ac\uc6a9 \uc571 \uc5c5\uadf8\ub808\uc774\ub4dc - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\ub9ac\uc561\ud2b8\ub294 \ud604\ub300 \uc6f9 \uac1c\ubc1c\uc758 \uc911\uc694\ud55c \ub3c4\uad6c\ub85c \uc790\ub9ac\uc7a1\uc558\uc2b5\ub2c8\ub2e4. \ud2b9\ud788, \uc0c1\ud0dc \uad00\ub9ac\uc5d0 \uc788\uc5b4 \ub2e4\uc591\ud55c \ubc29\ubc95\uc774 \uc788\uc9c0\ub9cc, \uadf8 \uc911 useReducer\ub294 \ub354 \ubcf5\uc7a1\ud55c \uc0c1\ud0dc \ub85c\uc9c1\uc744 \ud6a8\uacfc\uc801\uc73c\ub85c \uad00\ub9ac\ud560 \uc218 \uc788\ub3c4\ub85d \ub3d5\ub294 React \ud6c5\uc785\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 \uae30\ubcf8\uc801\uc778 To Do \uc571\uc744 \uc0ac\uc6a9\ud558\uc5ec useReducer\ub97c \ud65c\uc6a9\ud558\ub294 \ubc29\ubc95\uc744 \uad6c\uccb4\uc801\uc73c\ub85c \ub2e4\ub8e8\uaca0\uc2b5\ub2c8\ub2e4. 1. \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870 \uc6b0\uc120, \ud504\ub85c\uc81d\ud2b8\uc758 \uae30\ubcf8 \uad6c\uc870\ub97c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc77c\ubc18\uc801\uc73c\ub85c To Do \uc571\uc758 \uad6c\uc870\ub294 \ub2e4\uc74c\uacfc \uac19\uc774 &hellip; \ub354 \ubcf4\uae30 \"\ub9ac\uc561\ud2b8 \uac15\uc88c: To Do \uc571 useReducer \uc0ac\uc6a9 \uc571 \uc5c5\uadf8\ub808\uc774\ub4dc\"","og_url":"https:\/\/atmokpo.com\/w\/25898\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T06:48:23+00:00","article_modified_time":"2024-11-26T07:51:50+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"2\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/25898\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/25898\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"\ub9ac\uc561\ud2b8 \uac15\uc88c: To Do \uc571 useReducer \uc0ac\uc6a9 \uc571 \uc5c5\uadf8\ub808\uc774\ub4dc","datePublished":"2024-10-27T06:48:23+00:00","dateModified":"2024-11-26T07:51:50+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/25898\/"},"wordCount":33,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["\ub9ac\uc561\ud2b8 \uae30\ucd08 \uac15\uc88c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/25898\/","url":"https:\/\/atmokpo.com\/w\/25898\/","name":"\ub9ac\uc561\ud2b8 \uac15\uc88c: To Do \uc571 useReducer \uc0ac\uc6a9 \uc571 \uc5c5\uadf8\ub808\uc774\ub4dc - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T06:48:23+00:00","dateModified":"2024-11-26T07:51:50+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/25898\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/25898\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/25898\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"\ub9ac\uc561\ud2b8 \uac15\uc88c: To Do \uc571 useReducer \uc0ac\uc6a9 \uc571 \uc5c5\uadf8\ub808\uc774\ub4dc"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/25898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=25898"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/25898\/revisions"}],"predecessor-version":[{"id":25899,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/25898\/revisions\/25899"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=25898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=25898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=25898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}