{"id":38946,"date":"2024-11-02T02:35:49","date_gmt":"2024-11-02T02:35:49","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38946"},"modified":"2024-11-26T06:42:51","modified_gmt":"2024-11-26T06:42:51","slug":"react%ec%99%80-typescript-%ec%82%ac%ec%9a%a9%ed%95%98%ea%b8%b0-typescript%ec%9d%98-%ea%b8%b0%eb%b3%b8-%ea%b0%9c%eb%85%90%ea%b3%bc-%eb%a6%ac%ec%95%a1%ed%8a%b8%ec%97%90%ec%84%9c%ec%9d%98-%ec%82%ac","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38946\/","title":{"rendered":"React\uc640 TypeScript \uc0ac\uc6a9\ud558\uae30, TypeScript\uc758 \uae30\ubcf8 \uac1c\ub150\uacfc \ub9ac\uc561\ud2b8\uc5d0\uc11c\uc758 \uc0ac\uc6a9"},"content":{"rendered":"<article>\n<p>\n        \uc6f9 \uac1c\ubc1c\uc5d0 \uc788\uc5b4\uc11c JavaScript\uc758 \uc0ac\uc6a9\uc740 \ub110\ub9ac \ud37c\uc838 \uc788\uc2b5\ub2c8\ub2e4. \uadf8\ub7ec\ub098 JavaScript\ub294 \ub3d9\uc801 \ud0c0\uc774\ud551 \uc5b8\uc5b4\uc774\uae30 \ub54c\ubb38\uc5d0 \ub300\ud615 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \uacbd\uc6b0 \ud0c0\uc785 \uad00\ub828 \uc624\ub958\uac00 \ubc1c\uc0dd\ud560 \uac00\ub2a5\uc131\uc774 \ub192\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 Microsoft\uc5d0\uc11c \uac1c\ubc1c\ud55c <strong>TypeScript<\/strong>\uac00 \ub4f1\uc7a5\ud588\uc2b5\ub2c8\ub2e4. TypeScript\ub294 \uc815\uc801 \ud0c0\uc785\uc744 \uc9c0\uc6d0\ud558\uba70 JavaScript\uc758 \uc0c1\uc704 \uc9d1\ud569\uc73c\ub85c, React\uc640 \ud568\uaed8 \uc0ac\uc6a9\ud560 \uacbd\uc6b0 \ub354\uc6b1 \uac15\ub825\ud55c \ub3c4\uad6c\uac00 \ub429\ub2c8\ub2e4. \ubcf8 \uae00\uc5d0\uc11c\ub294 TypeScript\uc758 \uae30\ubcf8 \uac1c\ub150\uacfc React\uc5d0\uc11c\uc758 \ud65c\uc6a9 \ubc29\uc548\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h2>1. TypeScript\ub780?<\/h2>\n<p>\n        TypeScript\ub294 JavaScript\uc5d0 \ud0c0\uc785 \uc2dc\uc2a4\ud15c\uc744 \ucd94\uac00\ud55c \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\uc785\ub2c8\ub2e4. \uc774\ub294 \uac1c\ubc1c\uc790\ub4e4\uc774 \ucf54\ub4dc\uc5d0 \ud0c0\uc785\uc744 \uba85\uc2dc\ud568\uc73c\ub85c\uc368 \ub354 \ub098\uc740 IDE \uc9c0\uc6d0(\uc790\ub3d9 \uc644\uc131, \ub9ac\ud329\ud1a0\ub9c1, \ud0c0\uc785 \uac80\uc0ac \ub4f1)\uc744 \ubc1b\uace0, \ucf54\ub4dc\uc758 \uac00\ub3c5\uc131\uc744 \ub192\uc77c \uc218 \uc788\uac8c \ud574\uc90d\ub2c8\ub2e4. TypeScript\ub294 JavaScript\ub85c \ucef4\ud30c\uc77c\ub418\uae30 \ub54c\ubb38\uc5d0 \uae30\uc874\uc758 JavaScript \ucf54\ub4dc\uc640\uc758 \ud638\ud658\uc131 \ubb38\uc81c\uac00 \uc5c6\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h3>1.1 TypeScript\uc758 \uc8fc\uc694 \ud2b9\uc9d5<\/h3>\n<ul>\n<li><strong>\uc815\uc801 \ud0c0\uc785 \uac80\uc0ac:<\/strong> TypeScript\ub294 \ucf54\ub4dc\uac00 \uc2e4\ud589\ub418\uae30 \uc804\uc5d0 \ud0c0\uc785 \uc624\ub958\ub97c \ubc1c\uacac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>\uc0c1\uc18d \ubc0f \uc778\ud130\ud398\uc774\uc2a4:<\/strong> TypeScript\ub294 \uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc9c0\uc6d0\ud558\uba70, \uc0c1\uc18d\uacfc \uc778\ud130\ud398\uc774\uc2a4\ub97c \ud1b5\ud574 \ucf54\ub4dc\uc758 \uc7ac\uc0ac\uc6a9\uc131\uc744 \ub192\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>\ubaa8\ub4c8\ud654:<\/strong> TypeScript\ub294 ES6 \ubaa8\ub4c8 \uc2dc\uc2a4\ud15c\uc744 \uc9c0\uc6d0\ud558\uc5ec, \ubaa8\ub4c8\ub2f9 \ub2e8\uc77c \ud30c\uc77c\uc758 \uad6c\uc870\ub85c \ucf54\ub4dc\ub97c \uc798 \uad00\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>\uac1c\uc120\ub41c IDE \uc9c0\uc6d0:<\/strong> \ud0c0\uc785 \uc815\ubcf4\ub97c \ud1b5\ud574 \ub9ce\uc740 IDE\uc5d0\uc11c \ucf54\ub4dc \uc790\ub3d9 \uc644\uc131 \ubc0f \uc624\ub958 \uac80\uc0ac\ub97c \uc9c0\uc6d0\ud558\uc5ec \uac1c\ubc1c \uc0dd\uc0b0\uc131\uc744 \uadf9\ub300\ud654\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>2. TypeScript \uae30\ubcf8 \uac1c\ub150<\/h2>\n<p>\n        TypeScript\uc758 \uae30\ubcf8 \uac1c\ub150\uc744 \uc774\ud574\ud558\uae30 \uc704\ud574, \ub2e4\uc74c\uacfc \uac19\uc740 \uba87 \uac00\uc9c0 \uc8fc\uc694 \uc694\uc18c\ub97c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h3>2.1 \uae30\ubcf8 \ud0c0\uc785<\/h3>\n<p>\n        TypeScript\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \uae30\ubcf8 \ud0c0\uc785\uc744 \uc9c0\uc6d0\ud569\ub2c8\ub2e4: <code>string<\/code>, <code>number<\/code>, <code>boolean<\/code>, <code>void<\/code>, <code>null<\/code>, <code>undefined<\/code>, <code>any<\/code> \ub4f1\uc758 \ud0c0\uc785\uc774 \uc788\uc2b5\ub2c8\ub2e4. \uac01 \ud0c0\uc785\uc758 \uc0ac\uc6a9 \uc608\uc2dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<pre><code>let name: string = \"John Doe\";\nlet age: number = 30;\nlet hasJob: boolean = true;<\/code><\/pre>\n<h3>2.2 \ubc30\uc5f4 \ubc0f \ud29c\ud50c<\/h3>\n<p>\n        TypeScript\uc5d0\uc11c\ub294 \ubc30\uc5f4\uacfc \ud29c\ud50c \ud0c0\uc785\uc744 \uc815\uc758\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ubc30\uc5f4\uc740 <code>T[]<\/code> \ub610\ub294 <code>Array&lt;T&gt;<\/code> \ud615\uc2dd\uc73c\ub85c \uc815\uc758\ud560 \uc218 \uc788\uc73c\uba70, \ud29c\ud50c\uc740 \uace0\uc815\ub41c \uc218\uc758 \ud0c0\uc785\uc744 \uac00\uc9c8 \uc218 \uc788\ub294 \ubc30\uc5f4\uc785\ub2c8\ub2e4.\n    <\/p>\n<pre><code>let numbers: number[] = [1, 2, 3];\nlet tuple: [string, number] = [\"Hello\", 42];<\/code><\/pre>\n<h3>2.3 \uac1d\uccb4 \ud0c0\uc785<\/h3>\n<p>\n        TypeScript\uc5d0\uc11c\ub294 \uac1d\uccb4 \ud0c0\uc785\uc744 \uc815\uc758\ud560 \uc218 \uc788\uc73c\uba70, \uc774\ub97c \ud1b5\ud574 \uac1d\uccb4\uc758 \uad6c\uc870\ub97c \uba85\uc2dc\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<pre><code>let person: { name: string; age: number } = {\n    name: \"Alice\",\n    age: 25,\n};<\/code><\/pre>\n<h3>2.4 \uc778\ud130\ud398\uc774\uc2a4<\/h3>\n<p>\n        \uc778\ud130\ud398\uc774\uc2a4\ub294 \uac1d\uccb4\uc758 \uad6c\uc870\ub97c \uc815\uc758\ud558\ub294 \ubc29\ubc95\uc785\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \ucf54\ub4dc\uc758 \uc7ac\uc0ac\uc6a9\uc131\uc744 \ub192\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<pre><code>interface Person {\n    name: string;\n    age: number;\n}\n\nlet person: Person = { name: \"Bob\", age: 35 };<\/code><\/pre>\n<h3>2.5 \ud074\ub798\uc2a4\uc640 \uc0c1\uc18d<\/h3>\n<p>\n        TypeScript\ub294 \ud074\ub798\uc2a4\ub97c \uc9c0\uc6d0\ud558\uba70, \uc0c1\uc18d\uc744 \ud1b5\ud574 \ucf54\ub4dc\uc758 \uc7ac\uc0ac\uc6a9\uc131\uc744 \ub192\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<pre><code>class Animal {\n    constructor(public name: string) {}\n}\n\nclass Dog extends Animal {\n    bark() {\n        console.log(\"Woof! My name is \" + this.name);\n    }\n}\n\nlet dog = new Dog(\"Rex\");\ndog.bark(); \/\/ Woof! My name is Rex<\/code><\/pre>\n<h2>3. React\uc5d0\uc11c TypeScript \uc0ac\uc6a9\ud558\uae30<\/h2>\n<p>\n        React \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uad6c\ucd95\ud560 \ub54c TypeScript\ub97c \ud568\uaed8 \uc0ac\uc6a9\ud558\ub294 \uacbd\uc6b0, \uc5ec\ub7ec \uac00\uc9c0 \uc774\uc810\uc774 \uc788\uc2b5\ub2c8\ub2e4. \ud2b9\ud788 \ucef4\ud3ec\ub10c\ud2b8\uc758 props\uc640 state\uc5d0 \ub300\ud574 \uba85\ud655\ud55c \ud0c0\uc785\uc744 \uc815\uc758\ud568\uc73c\ub85c\uc368 \ucf54\ub4dc\uc758 \uac00\ub3c5\uc131\uacfc \uc548\uc815\uc131\uc744 \ub192\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h3>3.1 TypeScript\uc640 Create React App<\/h3>\n<p>\n<code>Create React App<\/code>\uc744 \uc0ac\uc6a9\ud558\uc5ec TypeScript \ud658\uacbd\uc5d0\uc11c React \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uad6c\ucd95\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c \uba85\ub839\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc5ec TypeScript \ud15c\ud50c\ub9bf\uc744 \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<pre><code>npx create-react-app my-app --template typescript<\/code><\/pre>\n<h3>3.2 \ucef4\ud3ec\ub10c\ud2b8\uc758 Props\uc640 State \ud0c0\uc785 \uc815\uc758\ud558\uae30<\/h3>\n<p>\n        React \ucef4\ud3ec\ub10c\ud2b8\ub97c \uc791\uc131\ud560 \ub54c, props\uc640 state\uc758 \ud0c0\uc785\uc744 \uc815\uc758\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c\uc740 \uac04\ub2e8\ud55c \uc608\uc81c\uc785\ub2c8\ub2e4.\n    <\/p>\n<pre><code>import React from \"react\";\n\ninterface Props {\n    title: string;\n    isActive: boolean;\n}\n\nconst MyComponent: React.FC<props> = ({ title, isActive }) =&gt; {\n    return (\n        <div>\n            <h1>{title}<\/h1>\n            <p>{isActive ? \"Active\" : \"Inactive\"}<\/p>\n        <\/div>\n    );\n};\n\nexport default MyComponent;<\/props><\/code><\/pre>\n<h3>3.3 useState \ubc0f useEffect\uc758 \ud0c0\uc785 \uc9c0\uc815\ud558\uae30<\/h3>\n<p>\n<code>useState<\/code>\uc640 <code>useEffect<\/code> \ud6c5\uc744 \uc0ac\uc6a9\ud560 \ub54c \ud0c0\uc785\uc744 \uc9c0\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<pre><code>import React, { useState, useEffect } from \"react\";\n\nconst MyComponent: React.FC = () =&gt; {\n    const [count, setCount] = useState<number>(0);\n\n    useEffect(() =&gt; {\n        const timer = setInterval(() =&gt; {\n            setCount((c) =&gt; c + 1);\n        }, 1000);\n        return () =&gt; clearInterval(timer);\n    }, []);\n\n    return <h1>{count}<\/h1>;\n};\n\nexport default MyComponent;<\/number><\/code><\/pre>\n<h3>3.4 \uc774\ubca4\ud2b8 \ud578\ub4e4\ub7ec\uc758 \ud0c0\uc785 \uc815\uc758\ud558\uae30<\/h3>\n<p>\n        TypeScript\uc5d0\uc11c\ub294 \uc774\ubca4\ud2b8 \ud578\ub4e4\ub7ec\uc758 \ud0c0\uc785\uc744 \uc815\uc758\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \ub9c8\uc6b0\uc2a4 \ud074\ub9ad \uc774\ubca4\ud2b8\uc758 \uacbd\uc6b0 \ub2e4\uc74c\uacfc \uac19\uc774 \ud0c0\uc785\uc744 \uc815\uc758\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<pre><code>const MyComponent: React.FC = () =&gt; {\n    const handleClick = (event: React.MouseEvent<htmlbuttonelement>) =&gt; {\n        console.log(\"Button clicked\");\n    };\n\n    return <button onclick=\"{handleClick}\">Click Me<\/button>;\n};<\/htmlbuttonelement><\/code><\/pre>\n<h2>4. TypeScript\uc640 React\uc758 \uc7a5\uc810<\/h2>\n<p>\n        TypeScript\uc640 React\ub97c \uacb0\ud569\ud558\uc5ec \uc0ac\uc6a9\ud560 \ub54c \uc5ec\ub7ec \uac00\uc9c0 \uc7a5\uc810\uc744 \ub204\ub9b4 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uadf8 \uc911 \uba87 \uac00\uc9c0\ub97c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<ul>\n<li><strong>\uc548\uc815\uc131:<\/strong> \uc815\uc801 \ud0c0\uc785 \uac80\uc0ac\ub97c \ud1b5\ud574 \ub7f0\ud0c0\uc784 \uc624\ub958\ub97c \uc0ac\uc804\uc5d0 \ubc29\uc9c0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>\uc720\uc9c0\ubcf4\uc218\uc131:<\/strong> \ucf54\ub4dc\uac00 \uba85\ud655\ud558\uac8c \ud0c0\uc785\uc744 \uc815\uc758\ud558\uace0 \uc788\uc5b4, \ud300\uc6d0\ub4e4\uc774 \ucf54\ub4dc\ub97c \uc27d\uac8c \uc774\ud574\ud558\uace0 \uc218\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>\uac15\ub825\ud55c \ub3c4\uad6c \uc9c0\uc6d0:<\/strong> IDE\uc5d0\uc11c\uc758 \uc790\ub3d9 \uc644\uc131\uacfc \uc624\ub958 \uac80\uc0ac\uac00 \uac1c\uc120\ub418\uc5b4 \uac1c\ubc1c \ud6a8\uc728\uc774 \uc99d\uac00\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>5. \ud0c0\uc785 \uc815\uc758\ub97c \ud1b5\ud55c \ub354 \ub098\uc740 \uac1c\ubc1c \uacbd\ud5d8<\/h2>\n<p>\n        TypeScript\ub97c \ud1b5\ud574 \ubcf4\ub2e4 \uc88b\uc740 \uac1c\ubc1c \uacbd\ud5d8\uc744 \uc81c\uacf5\ud558\uae30 \uc704\ud574, \ub2e4\uc74c\uacfc \uac19\uc740 \ud328\ud134\uc744 \uace0\ub824\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h3>5.1 \uc720\ub2c8\uc5b8 \ud0c0\uc785<\/h3>\n<p>\n        \uc720\ub2c8\uc5b8 \ud0c0\uc785\uc744 \ud1b5\ud574 \uc5ec\ub7ec \ud0c0\uc785\uc744 \ud558\ub098\uc758 \ubcc0\uc218\uc5d0 \uc9c0\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<pre><code>let id: string | number;\nid = \"ABC123\"; \/\/ valid\nid = 123; \/\/ valid<\/code><\/pre>\n<h3>5.2 \uc81c\ub124\ub9ad(Generic)<\/h3>\n<p>\n        \uc81c\ub124\ub9ad\uc744 \uc0ac\uc6a9\ud558\uc5ec \ub2e4\uc591\ud55c \ud0c0\uc785\uc5d0 \ub300\ud574 \uc720\uc5f0\uc131\uc744 \uc81c\uacf5\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<pre><code>function identity<t>(arg: T): T {\n    return arg;\n}\n\nlet output = identity<string>(\"Hello\"); \/\/ output: string<\/string><\/t><\/code><\/pre>\n<h3>5.3 \ud0c0\uc785 \ucd94\ub860<\/h3>\n<p>\n        TypeScript\ub294 \ud0c0\uc785 \uc120\uc5b8 \uc5c6\uc774\ub3c4 \ubcc0\uc218\uac00 \ucd08\uae30\ud654\ub420 \ub54c, \ud0c0\uc785\uc744 \ucd94\ub860\ud569\ub2c8\ub2e4.\n    <\/p>\n<pre><code>let num = 10; \/\/ inferred type is number<\/code><\/pre>\n<h2>6. \uacb0\ub860<\/h2>\n<p>\n        TypeScript\ub294 JavaScript\uc758 \uac15\ub825\ud55c \ud655\uc7a5\uc73c\ub85c, React\uc640 \uacb0\ud569\ud558\uc5ec \ub9e4\uc6b0 \uc548\uc815\uc801\uc774\uace0 \uc720\uc9c0\ubcf4\uc218\uac00 \uc6a9\uc774\ud55c \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc744 \uac00\ub2a5\ud558\uac8c \ud569\ub2c8\ub2e4. TypeScript\uc758 \ub2e4\uc591\ud55c \uae30\ub2a5\uc744 \ud65c\uc6a9\ud558\uc5ec \ub354 \ub098\uc740 \uac1c\ubc1c \ud658\uacbd\uc744 \uc870\uc131\ud558\uace0, \ud300\uc6d0 \uac04\uc758 \ud611\uc5c5 \uc2dc\uc5d0 \ubc1c\uc0dd\ud560 \uc218 \uc788\ub294 \ud0c0\uc785 \uad00\ub828 \uc624\ub958\ub97c \uc0ac\uc804\uc5d0 \ubc29\uc9c0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc55e\uc73c\ub85c\uc758 \uc6f9 \uac1c\ubc1c\uc5d0\uc11c TypeScript\uc758 \uc0ac\uc6a9\uc740 \uc810\uc810 \ub354 \uc99d\uac00\ud560 \uac83\uc73c\ub85c \ubcf4\uc785\ub2c8\ub2e4. \uadf8\ub7fc \uc5ec\ub7ec\ubd84\uc758 React \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c\ub3c4 TypeScript\ub97c \uc801\uadf9 \ud65c\uc6a9\ud574 \ubcf4\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4!\n    <\/p>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>\uc6f9 \uac1c\ubc1c\uc5d0 \uc788\uc5b4\uc11c JavaScript\uc758 \uc0ac\uc6a9\uc740 \ub110\ub9ac \ud37c\uc838 \uc788\uc2b5\ub2c8\ub2e4. \uadf8\ub7ec\ub098 JavaScript\ub294 \ub3d9\uc801 \ud0c0\uc774\ud551 \uc5b8\uc5b4\uc774\uae30 \ub54c\ubb38\uc5d0 \ub300\ud615 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \uacbd\uc6b0 \ud0c0\uc785 \uad00\ub828 \uc624\ub958\uac00 \ubc1c\uc0dd\ud560 \uac00\ub2a5\uc131\uc774 \ub192\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 Microsoft\uc5d0\uc11c \uac1c\ubc1c\ud55c TypeScript\uac00 \ub4f1\uc7a5\ud588\uc2b5\ub2c8\ub2e4. TypeScript\ub294 \uc815\uc801 \ud0c0\uc785\uc744 \uc9c0\uc6d0\ud558\uba70 JavaScript\uc758 \uc0c1\uc704 \uc9d1\ud569\uc73c\ub85c, React\uc640 \ud568\uaed8 \uc0ac\uc6a9\ud560 \uacbd\uc6b0 \ub354\uc6b1 \uac15\ub825\ud55c \ub3c4\uad6c\uac00 \ub429\ub2c8\ub2e4. \ubcf8 \uae00\uc5d0\uc11c\ub294 TypeScript\uc758 \uae30\ubcf8 \uac1c\ub150\uacfc React\uc5d0\uc11c\uc758 \ud65c\uc6a9 \ubc29\uc548\uc5d0 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38946\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;React\uc640 TypeScript \uc0ac\uc6a9\ud558\uae30, TypeScript\uc758 \uae30\ubcf8 \uac1c\ub150\uacfc \ub9ac\uc561\ud2b8\uc5d0\uc11c\uc758 \uc0ac\uc6a9&#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-38946","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>React\uc640 TypeScript \uc0ac\uc6a9\ud558\uae30, TypeScript\uc758 \uae30\ubcf8 \uac1c\ub150\uacfc \ub9ac\uc561\ud2b8\uc5d0\uc11c\uc758 \uc0ac\uc6a9 - \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\/38946\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"React\uc640 TypeScript \uc0ac\uc6a9\ud558\uae30, TypeScript\uc758 \uae30\ubcf8 \uac1c\ub150\uacfc \ub9ac\uc561\ud2b8\uc5d0\uc11c\uc758 \uc0ac\uc6a9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc6f9 \uac1c\ubc1c\uc5d0 \uc788\uc5b4\uc11c JavaScript\uc758 \uc0ac\uc6a9\uc740 \ub110\ub9ac \ud37c\uc838 \uc788\uc2b5\ub2c8\ub2e4. \uadf8\ub7ec\ub098 JavaScript\ub294 \ub3d9\uc801 \ud0c0\uc774\ud551 \uc5b8\uc5b4\uc774\uae30 \ub54c\ubb38\uc5d0 \ub300\ud615 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \uacbd\uc6b0 \ud0c0\uc785 \uad00\ub828 \uc624\ub958\uac00 \ubc1c\uc0dd\ud560 \uac00\ub2a5\uc131\uc774 \ub192\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 Microsoft\uc5d0\uc11c \uac1c\ubc1c\ud55c TypeScript\uac00 \ub4f1\uc7a5\ud588\uc2b5\ub2c8\ub2e4. TypeScript\ub294 \uc815\uc801 \ud0c0\uc785\uc744 \uc9c0\uc6d0\ud558\uba70 JavaScript\uc758 \uc0c1\uc704 \uc9d1\ud569\uc73c\ub85c, React\uc640 \ud568\uaed8 \uc0ac\uc6a9\ud560 \uacbd\uc6b0 \ub354\uc6b1 \uac15\ub825\ud55c \ub3c4\uad6c\uac00 \ub429\ub2c8\ub2e4. \ubcf8 \uae00\uc5d0\uc11c\ub294 TypeScript\uc758 \uae30\ubcf8 \uac1c\ub150\uacfc React\uc5d0\uc11c\uc758 \ud65c\uc6a9 \ubc29\uc548\uc5d0 &hellip; \ub354 \ubcf4\uae30 &quot;React\uc640 TypeScript \uc0ac\uc6a9\ud558\uae30, TypeScript\uc758 \uae30\ubcf8 \uac1c\ub150\uacfc \ub9ac\uc561\ud2b8\uc5d0\uc11c\uc758 \uc0ac\uc6a9&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38946\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-02T02:35:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:42:51+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\/38946\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38946\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"React\uc640 TypeScript \uc0ac\uc6a9\ud558\uae30, TypeScript\uc758 \uae30\ubcf8 \uac1c\ub150\uacfc \ub9ac\uc561\ud2b8\uc5d0\uc11c\uc758 \uc0ac\uc6a9\",\"datePublished\":\"2024-11-02T02:35:49+00:00\",\"dateModified\":\"2024-11-26T06:42:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38946\/\"},\"wordCount\":68,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"React\ud504\ub860\ud2b8\uc5d4\ub4dc\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38946\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38946\/\",\"name\":\"React\uc640 TypeScript \uc0ac\uc6a9\ud558\uae30, TypeScript\uc758 \uae30\ubcf8 \uac1c\ub150\uacfc \ub9ac\uc561\ud2b8\uc5d0\uc11c\uc758 \uc0ac\uc6a9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-02T02:35:49+00:00\",\"dateModified\":\"2024-11-26T06:42:51+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38946\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38946\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38946\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"React\uc640 TypeScript \uc0ac\uc6a9\ud558\uae30, TypeScript\uc758 \uae30\ubcf8 \uac1c\ub150\uacfc \ub9ac\uc561\ud2b8\uc5d0\uc11c\uc758 \uc0ac\uc6a9\"}]},{\"@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":"React\uc640 TypeScript \uc0ac\uc6a9\ud558\uae30, TypeScript\uc758 \uae30\ubcf8 \uac1c\ub150\uacfc \ub9ac\uc561\ud2b8\uc5d0\uc11c\uc758 \uc0ac\uc6a9 - \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\/38946\/","og_locale":"ko_KR","og_type":"article","og_title":"React\uc640 TypeScript \uc0ac\uc6a9\ud558\uae30, TypeScript\uc758 \uae30\ubcf8 \uac1c\ub150\uacfc \ub9ac\uc561\ud2b8\uc5d0\uc11c\uc758 \uc0ac\uc6a9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc6f9 \uac1c\ubc1c\uc5d0 \uc788\uc5b4\uc11c JavaScript\uc758 \uc0ac\uc6a9\uc740 \ub110\ub9ac \ud37c\uc838 \uc788\uc2b5\ub2c8\ub2e4. \uadf8\ub7ec\ub098 JavaScript\ub294 \ub3d9\uc801 \ud0c0\uc774\ud551 \uc5b8\uc5b4\uc774\uae30 \ub54c\ubb38\uc5d0 \ub300\ud615 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \uacbd\uc6b0 \ud0c0\uc785 \uad00\ub828 \uc624\ub958\uac00 \ubc1c\uc0dd\ud560 \uac00\ub2a5\uc131\uc774 \ub192\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 Microsoft\uc5d0\uc11c \uac1c\ubc1c\ud55c TypeScript\uac00 \ub4f1\uc7a5\ud588\uc2b5\ub2c8\ub2e4. TypeScript\ub294 \uc815\uc801 \ud0c0\uc785\uc744 \uc9c0\uc6d0\ud558\uba70 JavaScript\uc758 \uc0c1\uc704 \uc9d1\ud569\uc73c\ub85c, React\uc640 \ud568\uaed8 \uc0ac\uc6a9\ud560 \uacbd\uc6b0 \ub354\uc6b1 \uac15\ub825\ud55c \ub3c4\uad6c\uac00 \ub429\ub2c8\ub2e4. \ubcf8 \uae00\uc5d0\uc11c\ub294 TypeScript\uc758 \uae30\ubcf8 \uac1c\ub150\uacfc React\uc5d0\uc11c\uc758 \ud65c\uc6a9 \ubc29\uc548\uc5d0 &hellip; \ub354 \ubcf4\uae30 \"React\uc640 TypeScript \uc0ac\uc6a9\ud558\uae30, TypeScript\uc758 \uae30\ubcf8 \uac1c\ub150\uacfc \ub9ac\uc561\ud2b8\uc5d0\uc11c\uc758 \uc0ac\uc6a9\"","og_url":"https:\/\/atmokpo.com\/w\/38946\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-02T02:35:49+00:00","article_modified_time":"2024-11-26T06:42:51+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\/38946\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38946\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"React\uc640 TypeScript \uc0ac\uc6a9\ud558\uae30, TypeScript\uc758 \uae30\ubcf8 \uac1c\ub150\uacfc \ub9ac\uc561\ud2b8\uc5d0\uc11c\uc758 \uc0ac\uc6a9","datePublished":"2024-11-02T02:35:49+00:00","dateModified":"2024-11-26T06:42:51+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38946\/"},"wordCount":68,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["React\ud504\ub860\ud2b8\uc5d4\ub4dc"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38946\/","url":"https:\/\/atmokpo.com\/w\/38946\/","name":"React\uc640 TypeScript \uc0ac\uc6a9\ud558\uae30, TypeScript\uc758 \uae30\ubcf8 \uac1c\ub150\uacfc \ub9ac\uc561\ud2b8\uc5d0\uc11c\uc758 \uc0ac\uc6a9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-02T02:35:49+00:00","dateModified":"2024-11-26T06:42:51+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38946\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38946\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38946\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"React\uc640 TypeScript \uc0ac\uc6a9\ud558\uae30, TypeScript\uc758 \uae30\ubcf8 \uac1c\ub150\uacfc \ub9ac\uc561\ud2b8\uc5d0\uc11c\uc758 \uc0ac\uc6a9"}]},{"@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\/38946","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=38946"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38946\/revisions"}],"predecessor-version":[{"id":38947,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38946\/revisions\/38947"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38946"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38946"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}