{"id":39071,"date":"2024-11-02T02:36:46","date_gmt":"2024-11-02T02:36:46","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=39071"},"modified":"2024-11-26T06:42:31","modified_gmt":"2024-11-26T06:42:31","slug":"context-api%ec%99%80-%ec%a0%84%ec%97%ad-%ec%83%81%ed%83%9c-%ea%b4%80%eb%a6%ac-redux%ec%99%80-context-api-%eb%b9%84%ea%b5%90-%eb%b0%8f-%ec%84%a0%ed%83%9d","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/39071\/","title":{"rendered":"Context API\uc640 \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac, Redux\uc640 Context API \ube44\uad50 \ubc0f \uc120\ud0dd"},"content":{"rendered":"<p><body><\/p>\n<p>\ub9ac\uc561\ud2b8(React)\ub294 \uc778\uae30 \uc788\ub294 JavaScript \ub77c\uc774\ube0c\ub7ec\ub9ac\ub85c, \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4(UI)\ub97c \uad6c\ucd95\ud558\ub294 \ub370 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \ub9ac\uc561\ud2b8\ub97c \uc0ac\uc6a9\ud560 \ub54c, \uc885\uc885 \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac\uc5d0 \ub300\ud55c \ud544\uc694\uc131\uc774 \ubc1c\uc0dd\ud569\ub2c8\ub2e4. \uc77c\ubc18\uc801\uc73c\ub85c \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac \ub77c\uc774\ube0c\ub7ec\ub9ac\uc778 Redux\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc0c1\ud0dc\ub97c \uad00\ub9ac\ud560 \uc218 \uc788\uc9c0\ub9cc, \ub9ac\uc561\ud2b8\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 Context API\ub3c4 \ub9ce\uc740 \uacbd\uc6b0\uc5d0 \ud6a8\uacfc\uc801\uc73c\ub85c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Context API\uc640 Redux\ub97c \ube44\uad50\ud558\uace0, \uac01\uac01\uc758 \uc7a5\ub2e8\uc810\uc744 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>Context API\ub780 \ubb34\uc5c7\uc778\uac00?<\/h2>\n<p>Context API\ub294 \ub9ac\uc561\ud2b8\uc5d0\uc11c \uc804\uc5ed \ub370\uc774\ud130\ub97c \ub2e4\ub8e8\uae30 \uc704\ud55c \ubc29\ubc95 \uc911 \ud558\ub098\uc785\ub2c8\ub2e4. \uc774 API\ub97c \uc0ac\uc6a9\ud558\uba74 \ucef4\ud3ec\ub10c\ud2b8 \ud2b8\ub9ac \uc804\uccb4\uc5d0\uc11c \ub370\uc774\ud130\ub97c \uac04\ud3b8\ud558\uac8c \uacf5\uc720\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. Context API\ub294 React 16.3\ubd80\ud130 \ub3c4\uc785\ub418\uc5c8\uc73c\uba70, \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac\uac00 \ud544\uc694\ud55c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ubcf5\uc7a1\uc131\uc744 \uc904\uc774\ub294 \ub370 \ub3c4\uc6c0\uc744 \uc90d\ub2c8\ub2e4.<\/p>\n<h3>Context API\uc758 \uae30\ubcf8 \uc0ac\uc6a9\ubc95<\/h3>\n<p>Context API\ub97c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574\uc11c\ub294 <code>createContext<\/code> \ud568\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec Context \uac1d\uccb4\ub97c \uc0dd\uc131\ud574\uc57c \ud569\ub2c8\ub2e4. \uc774\ud6c4, <code>Provider<\/code> \ucef4\ud3ec\ub10c\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc790\uc2dd \ucef4\ud3ec\ub10c\ud2b8\ub4e4\uc5d0\uac8c \ub370\uc774\ud130\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4. \ub9c8\uc9c0\ub9c9\uc73c\ub85c, <code>Consumer<\/code> \ucef4\ud3ec\ub10c\ud2b8 \ub610\ub294 <code>useContext<\/code> \ud6c5\uc744 \uc774\uc6a9\ud558\uc5ec \uc81c\uacf5\ub41c \ub370\uc774\ud130\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h4>\uc608\uc81c: Context API \uc0ac\uc6a9\ud558\uae30<\/h4>\n<pre><code>import React, { createContext, useContext, useState } from 'react';\n\n\/\/ Context \uac1d\uccb4 \uc0dd\uc131\nconst ThemeContext = createContext();\n\n\/\/ Provider \ucef4\ud3ec\ub10c\ud2b8\nconst ThemeProvider = ({ children }) =&gt; {\n    const [theme, setTheme] = useState('light');\n\n    const toggleTheme = () =&gt; {\n        setTheme((prevTheme) =&gt; (prevTheme === 'light' ? 'dark' : 'light'));\n    };\n\n    return (\n        <themecontext.provider theme,=\"\" toggletheme=\"\" value=\"{{\" }}=\"\">\n            {children}\n        <\/themecontext.provider>\n    );\n};\n\n\/\/ \uc790\uc2dd \ucef4\ud3ec\ub10c\ud2b8\nconst ThemedComponent = () =&gt; {\n    const { theme, toggleTheme } = useContext(ThemeContext);\n\n    return (\n        <div '#000'=\"\" '#333'=\"\" '#fff'=\"\" '#fff',=\"\" :=\"\" ?=\"\" background:=\"\" color:=\"\" style=\"{{\" theme=\"dark\" }}=\"\">\n            <p>\ud604\uc7ac \ud14c\ub9c8: {theme}<\/p>\n            <button onclick=\"{toggleTheme}\">\ud14c\ub9c8 \ubcc0\uacbd<\/button>\n        <\/div>\n    );\n};\n\n\/\/ \uba54\uc778 \ucef4\ud3ec\ub10c\ud2b8\nconst App = () =&gt; {\n    return (\n        <themeprovider>\n            <themedcomponent><\/themedcomponent>\n        <\/themeprovider>\n    );\n};\n\nexport default App;<\/code><\/pre>\n<h2>Redux\ub780 \ubb34\uc5c7\uc778\uac00?<\/h2>\n<p>Redux\ub294 \uc0c1\ud0dc \uad00\ub9ac\ub97c \uc704\ud574 \uc124\uacc4\ub41c JavaScript \ub77c\uc774\ube0c\ub7ec\ub9ac\uc785\ub2c8\ub2e4. \ub9ac\uc561\ud2b8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uacfc \ud568\uaed8 \uc0ac\uc6a9\ub418\ub294 \uac83\uc774 \uc77c\ubc18\uc801\uc774\uc9c0\ub9cc, \ub9ac\uc561\ud2b8\uc5d0 \uc885\uc18d\uc801\uc774\uc9c0\ub294 \uc54a\uc2b5\ub2c8\ub2e4. Redux\ub294 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc0c1\ud0dc\ub97c \ub2e8\uc77c \uc2a4\ud1a0\uc5b4\uc5d0 \ubcf4\uad00\ud558\uba70, \ubaa8\ub4e0 \uc0c1\ud0dc \ubcc0\uacbd\uc740 \uc561\uc158\uc744 \ud1b5\ud574 \uc774\ub8e8\uc5b4\uc9d1\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uad6c\uc870\ub294 \uc0c1\ud0dc \ubcc0\uacbd\uc758 \uc608\uce21 \uac00\ub2a5\uc131\uc744 \ub192\uc774\uace0, \ub514\ubc84\uae45\uc744 \uc6a9\uc774\ud558\uac8c \ud569\ub2c8\ub2e4.<\/p>\n<h3>Redux\uc758 \uae30\ubcf8 \uc0ac\uc6a9\ubc95<\/h3>\n<p>Redux\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 \uba3c\uc800 <code>createStore<\/code> \ud568\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc2a4\ud1a0\uc5b4\ub97c \uc0dd\uc131\ud574\uc57c \ud569\ub2c8\ub2e4. \uc561\uc158\uacfc \ub9ac\ub4c0\uc11c\ub97c \uc815\uc758\ud55c \ud6c4, <code>Provider<\/code> \ucef4\ud3ec\ub10c\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \uc2a4\ud1a0\uc5b4\ub97c \uc81c\uacf5\ud574\uc57c \ud569\ub2c8\ub2e4. \uc790\uc2dd \ucef4\ud3ec\ub10c\ud2b8\uc5d0\uc11c\ub294 <code>useSelector<\/code>\uc640 <code>useDispatch<\/code> \ud6c5\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc0c1\ud0dc\ub97c \uc77d\uace0 \uc561\uc158\uc744 dispatch\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h4>\uc608\uc81c: Redux \uc0ac\uc6a9\ud558\uae30<\/h4>\n<pre><code>import React from 'react';\nimport { createStore } from 'redux';\nimport { Provider, useDispatch, useSelector } from 'react-redux';\n\n\/\/ \ucd08\uae30 \uc0c1\ud0dc\nconst initialState = { theme: 'light' };\n\n\/\/ \ub9ac\ub4c0\uc11c\nconst themeReducer = (state = initialState, action) =&gt; {\n    switch (action.type) {\n        case 'TOGGLE_THEME':\n            return { ...state, theme: state.theme === 'light' ? 'dark' : 'light' };\n        default:\n            return state;\n    }\n};\n\n\/\/ \uc2a4\ud1a0\uc5b4 \uc0dd\uc131\nconst store = createStore(themeReducer);\n\n\/\/ \uc790\uc2dd \ucef4\ud3ec\ub10c\ud2b8\nconst ThemedComponent = () =&gt; {\n    const theme = useSelector((state) =&gt; state.theme);\n    const dispatch = useDispatch();\n\n    return (\n        <div '#000'=\"\" '#333'=\"\" '#fff'=\"\" '#fff',=\"\" :=\"\" ?=\"\" background:=\"\" color:=\"\" style=\"{{\" theme=\"dark\" }}=\"\">\n            <p>\ud604\uc7ac \ud14c\ub9c8: {theme}<\/p>\n            <button ==\"\" onclick=\"{()\"> dispatch({ type: 'TOGGLE_THEME' })}&gt;\ud14c\ub9c8 \ubcc0\uacbd<\/button>\n        <\/div>\n    );\n};\n\n\/\/ \uba54\uc778 \ucef4\ud3ec\ub10c\ud2b8\nconst App = () =&gt; {\n    return (\n        <provider store=\"{store}\">\n            <themedcomponent><\/themedcomponent>\n        <\/provider>\n    );\n};\n\nexport default App;<\/code><\/pre>\n<h2>Context API\uc640 Redux \ube44\uad50<\/h2>\n<table>\n<thead>\n<tr>\n<th>\ud2b9\uc9d5<\/th>\n<th>Context API<\/th>\n<th>Redux<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\uc124\uce58 \uc5ec\ubd80<\/td>\n<td>\ub9ac\uc561\ud2b8\uc640 \ud568\uaed8 \uae30\ubcf8\uc801\uc73c\ub85c \uc81c\uacf5\ub428<\/td>\n<td>\ucd94\uac00 \ud328\ud0a4\uc9c0 \uc124\uce58 \ud544\uc694 (redux, react-redux)<\/td>\n<\/tr>\n<tr>\n<td>\ubcf5\uc7a1\ub3c4<\/td>\n<td>\uc0c1\ub300\uc801\uc73c\ub85c \ub2e8\uc21c\ud568<\/td>\n<td>\uc0c1\ub300\uc801\uc73c\ub85c \ubcf5\uc7a1\ud568 (\uc561\uc158, \ub9ac\ub4c0\uc11c \ub4f1)<\/td>\n<\/tr>\n<tr>\n<td>\uc131\ub2a5<\/td>\n<td>\uc0c1\ud669\uc5d0 \ub530\ub77c \uc131\ub2a5 \uc800\ud558 \uac00\ub2a5<\/td>\n<td>\ucd5c\uc801\ud654\ub41c \uc131\ub2a5 (reselect \ub4f1 \uc0ac\uc6a9 \uac00\ub2a5)<\/td>\n<\/tr>\n<tr>\n<td>\ube44\ub3d9\uae30 \ucc98\ub9ac<\/td>\n<td>\uc9c1\uc811 \ucc98\ub9ac\ud574\uc57c \ud568<\/td>\n<td>\ubbf8\ub4e4\uc6e8\uc5b4 \uc0ac\uc6a9 \uac00\ub2a5 (redux-thunk, redux-saga \ub4f1)<\/td>\n<\/tr>\n<tr>\n<td>\ub514\ubc84\uae45 \ub3c4\uad6c<\/td>\n<td>\uc81c\ud55c\uc801<\/td>\n<td>\uac15\ub825\ud55c \uac1c\ubc1c\uc790 \ub3c4\uad6c \uc81c\uacf5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Context API\uc640 Redux\uc758 \uc120\ud0dd \uae30\uc900<\/h2>\n<p>Context API\uc640 Redux\ub97c \uc120\ud0dd\ud560 \ub54c \uace0\ub824\ud574\uc57c \ud560 \uc8fc\uc694 \uc694\uc18c\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>\uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \ubcf5\uc7a1\uc131:<\/strong> \ub2e8\uc21c\ud55c \uc0c1\ud0dc \uad00\ub9ac\ub97c \ud544\uc694\ub85c \ud558\ub294 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc740 Context API\ub97c \uc0ac\uc6a9\ud558\ub294 \uac83\uc774 \ub354 \uac04\ud3b8\ud569\ub2c8\ub2e4. \ubc18\uba74, \ubcf5\uc7a1\ud55c \uc0c1\ud0dc \uad00\ub9ac, \ube44\ub3d9\uae30 \uc694\uccad, \ub370\uc774\ud130 \ud750\ub984 \uad00\ub9ac\uac00 \ud544\uc694\ud55c \uacbd\uc6b0 Redux\uac00 \ub354 \uc801\ud569\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\uc131\ub2a5:<\/strong> \ub9ce\uc740 \ub370\uc774\ud130 \uc5c5\ub370\uc774\ud2b8\uac00 \ube48\ubc88\ud55c \uacbd\uc6b0 Redux\uc640 \uac19\uc740 \ucd5c\uc801\ud654\ub41c \uc0c1\ud0dc \uad00\ub9ac \uc194\ub8e8\uc158\uc744 \uc120\ud0dd\ud558\ub294 \uac83\uc774 \uc88b\uc2b5\ub2c8\ub2e4. Context API\ub294 \uc131\ub2a5 \uc800\ud558\ub97c \ucd08\ub798\ud560 \uc218 \uc788\uc73c\uba70, \uc0c1\ud669\uc5d0 \ub530\ub77c\uc11c\ub294 \ubd88\ud544\uc694\ud55c \ub9ac\ub80c\ub354\ub9c1\uc774 \ubc1c\uc0dd\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>\ucee4\ubba4\ub2c8\ud2f0\uc640 \uc9c0\uc6d0:<\/strong> Redux\ub294 \uc624\ub79c \uae30\uac04 \uc0ac\uc6a9\ub418\uc5b4 \uc628 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub85c, \ubc29\ub300\ud55c \ucee4\ubba4\ub2c8\ud2f0\uc640 \ubb38\uc11c, \ud50c\ub7ec\uadf8\uc778 \uc0dd\ud0dc\uacc4\uac00 \uc788\uc2b5\ub2c8\ub2e4. \uc774\uc5d0 \ube44\ud574 Context API\ub294 \uc0c1\ub300\uc801\uc73c\ub85c \ub2e8\uc21c\ud55c \uae30\ub2a5\uc744 \uc81c\uacf5\ud558\ub294 \ub370 \uadf8\uce69\ub2c8\ub2e4.<\/li>\n<li><strong>\ud559\uc2b5 \uace1\uc120:<\/strong> Context API\ub294 \ub9ac\uc561\ud2b8\ub97c \uc0ac\uc6a9\ud558\ub294 \uac1c\ubc1c\uc790\ub77c\uba74 \uc27d\uac8c \uc774\ud574\ud560 \uc218 \uc788\uc9c0\ub9cc, Redux\ub294 \ubcf4\ub2e4 \ubcf5\uc7a1\ud55c \uad6c\uc870\ub97c \uac00\uc9c0\uace0 \uc788\uae30 \ub54c\ubb38\uc5d0 \ucd08\uae30 \ud559\uc2b5 \uace1\uc120\uc774 \ub192\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>\uacb0\ub860<\/h2>\n<p>Context API\uc640 Redux \ubaa8\ub450 \ub9ac\uc561\ud2b8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac\ub97c \uc704\ud55c \uc720\uc6a9\ud55c \ub3c4\uad6c\uc785\ub2c8\ub2e4. \uac04\ub2e8\ud55c \uc0c1\ud0dc \uad00\ub9ac\uac00 \ud544\uc694\ud55c \uacbd\uc6b0 Context API\ub97c \uc0ac\uc6a9\ud558\uace0, \ubcf5\uc7a1\ud55c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc0c1\ud0dc \uad00\ub9ac\ub97c \ud544\uc694\ub85c \ud560 \ub54c\ub294 Redux\ub97c \uc120\ud0dd\ud558\ub294 \uac83\uc774 \uc88b\uc2b5\ub2c8\ub2e4. \uac01 \ub3c4\uad6c\uc758 \ud2b9\uc131\uc744 \uc798 \uc774\ud574\ud558\uace0, \uc801\uc808\ud55c \uc0c1\ud669\uc5d0 \ub530\ub77c \uc120\ud0dd\ud558\uc5ec \ub354\uc6b1 \ud6a8\uc728\uc801\uc778 \ub9ac\uc561\ud2b8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ub9ac\uc561\ud2b8(React)\ub294 \uc778\uae30 \uc788\ub294 JavaScript \ub77c\uc774\ube0c\ub7ec\ub9ac\ub85c, \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4(UI)\ub97c \uad6c\ucd95\ud558\ub294 \ub370 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \ub9ac\uc561\ud2b8\ub97c \uc0ac\uc6a9\ud560 \ub54c, \uc885\uc885 \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac\uc5d0 \ub300\ud55c \ud544\uc694\uc131\uc774 \ubc1c\uc0dd\ud569\ub2c8\ub2e4. \uc77c\ubc18\uc801\uc73c\ub85c \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac \ub77c\uc774\ube0c\ub7ec\ub9ac\uc778 Redux\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc0c1\ud0dc\ub97c \uad00\ub9ac\ud560 \uc218 \uc788\uc9c0\ub9cc, \ub9ac\uc561\ud2b8\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 Context API\ub3c4 \ub9ce\uc740 \uacbd\uc6b0\uc5d0 \ud6a8\uacfc\uc801\uc73c\ub85c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Context API\uc640 Redux\ub97c \ube44\uad50\ud558\uace0, \uac01\uac01\uc758 \uc7a5\ub2e8\uc810\uc744 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. Context API\ub780 \ubb34\uc5c7\uc778\uac00? Context &hellip; <a href=\"https:\/\/atmokpo.com\/w\/39071\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;Context API\uc640 \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac, Redux\uc640 Context API \ube44\uad50 \ubc0f \uc120\ud0dd&#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":[191],"tags":[],"class_list":["post-39071","post","type-post","status-publish","format-standard","hentry","category-react"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Context API\uc640 \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac, Redux\uc640 Context API \ube44\uad50 \ubc0f \uc120\ud0dd - \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\/39071\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Context API\uc640 \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac, Redux\uc640 Context API \ube44\uad50 \ubc0f \uc120\ud0dd - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\ub9ac\uc561\ud2b8(React)\ub294 \uc778\uae30 \uc788\ub294 JavaScript \ub77c\uc774\ube0c\ub7ec\ub9ac\ub85c, \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4(UI)\ub97c \uad6c\ucd95\ud558\ub294 \ub370 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \ub9ac\uc561\ud2b8\ub97c \uc0ac\uc6a9\ud560 \ub54c, \uc885\uc885 \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac\uc5d0 \ub300\ud55c \ud544\uc694\uc131\uc774 \ubc1c\uc0dd\ud569\ub2c8\ub2e4. \uc77c\ubc18\uc801\uc73c\ub85c \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac \ub77c\uc774\ube0c\ub7ec\ub9ac\uc778 Redux\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc0c1\ud0dc\ub97c \uad00\ub9ac\ud560 \uc218 \uc788\uc9c0\ub9cc, \ub9ac\uc561\ud2b8\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 Context API\ub3c4 \ub9ce\uc740 \uacbd\uc6b0\uc5d0 \ud6a8\uacfc\uc801\uc73c\ub85c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Context API\uc640 Redux\ub97c \ube44\uad50\ud558\uace0, \uac01\uac01\uc758 \uc7a5\ub2e8\uc810\uc744 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. Context API\ub780 \ubb34\uc5c7\uc778\uac00? Context &hellip; \ub354 \ubcf4\uae30 &quot;Context API\uc640 \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac, Redux\uc640 Context API \ube44\uad50 \ubc0f \uc120\ud0dd&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/39071\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-02T02:36:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:42:31+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=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/39071\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/39071\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"Context API\uc640 \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac, Redux\uc640 Context API \ube44\uad50 \ubc0f \uc120\ud0dd\",\"datePublished\":\"2024-11-02T02:36:46+00:00\",\"dateModified\":\"2024-11-26T06:42:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/39071\/\"},\"wordCount\":72,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"React\ud504\ub860\ud2b8\uc5d4\ub4dc\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/39071\/\",\"url\":\"https:\/\/atmokpo.com\/w\/39071\/\",\"name\":\"Context API\uc640 \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac, Redux\uc640 Context API \ube44\uad50 \ubc0f \uc120\ud0dd - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-02T02:36:46+00:00\",\"dateModified\":\"2024-11-26T06:42:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/39071\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/39071\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/39071\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Context API\uc640 \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac, Redux\uc640 Context API \ube44\uad50 \ubc0f \uc120\ud0dd\"}]},{\"@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":"Context API\uc640 \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac, Redux\uc640 Context API \ube44\uad50 \ubc0f \uc120\ud0dd - \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\/39071\/","og_locale":"ko_KR","og_type":"article","og_title":"Context API\uc640 \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac, Redux\uc640 Context API \ube44\uad50 \ubc0f \uc120\ud0dd - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\ub9ac\uc561\ud2b8(React)\ub294 \uc778\uae30 \uc788\ub294 JavaScript \ub77c\uc774\ube0c\ub7ec\ub9ac\ub85c, \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4(UI)\ub97c \uad6c\ucd95\ud558\ub294 \ub370 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \ub9ac\uc561\ud2b8\ub97c \uc0ac\uc6a9\ud560 \ub54c, \uc885\uc885 \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac\uc5d0 \ub300\ud55c \ud544\uc694\uc131\uc774 \ubc1c\uc0dd\ud569\ub2c8\ub2e4. \uc77c\ubc18\uc801\uc73c\ub85c \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac \ub77c\uc774\ube0c\ub7ec\ub9ac\uc778 Redux\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc0c1\ud0dc\ub97c \uad00\ub9ac\ud560 \uc218 \uc788\uc9c0\ub9cc, \ub9ac\uc561\ud2b8\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 Context API\ub3c4 \ub9ce\uc740 \uacbd\uc6b0\uc5d0 \ud6a8\uacfc\uc801\uc73c\ub85c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Context API\uc640 Redux\ub97c \ube44\uad50\ud558\uace0, \uac01\uac01\uc758 \uc7a5\ub2e8\uc810\uc744 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. Context API\ub780 \ubb34\uc5c7\uc778\uac00? Context &hellip; \ub354 \ubcf4\uae30 \"Context API\uc640 \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac, Redux\uc640 Context API \ube44\uad50 \ubc0f \uc120\ud0dd\"","og_url":"https:\/\/atmokpo.com\/w\/39071\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-02T02:36:46+00:00","article_modified_time":"2024-11-26T06:42:31+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":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/39071\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/39071\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"Context API\uc640 \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac, Redux\uc640 Context API \ube44\uad50 \ubc0f \uc120\ud0dd","datePublished":"2024-11-02T02:36:46+00:00","dateModified":"2024-11-26T06:42:31+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/39071\/"},"wordCount":72,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["React\ud504\ub860\ud2b8\uc5d4\ub4dc"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/39071\/","url":"https:\/\/atmokpo.com\/w\/39071\/","name":"Context API\uc640 \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac, Redux\uc640 Context API \ube44\uad50 \ubc0f \uc120\ud0dd - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-02T02:36:46+00:00","dateModified":"2024-11-26T06:42:31+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/39071\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/39071\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/39071\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"Context API\uc640 \uc804\uc5ed \uc0c1\ud0dc \uad00\ub9ac, Redux\uc640 Context API \ube44\uad50 \ubc0f \uc120\ud0dd"}]},{"@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\/39071","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=39071"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/39071\/revisions"}],"predecessor-version":[{"id":39072,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/39071\/revisions\/39072"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=39071"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=39071"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=39071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}