{"id":3920,"date":"2020-06-02T13:46:40","date_gmt":"2020-06-02T08:16:40","guid":{"rendered":"https:\/\/www.concettolabs.com\/blog\/?p=3920"},"modified":"2020-06-02T13:46:40","modified_gmt":"2020-06-02T08:16:40","slug":"create-a-react-app-using-typescript","status":"publish","type":"post","link":"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/","title":{"rendered":"Create a React App Using Typescript"},"content":{"rendered":"<p>React, and TypeScript are two remarkable technologies used by several developers. If you\u2019re a React developer, you might have heard about TypeScript. It\u2019s a statically typed superset of JavaScript which makes its faster and more robust React apps.<\/p>\n<p>React and TypeScript both work hand-in-hand to alleviate some react drawbacks. TypeScript comes with a learning curve. So, let\u2019s walk through everything you need to know to get started with the React app using TypeScript.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Overview_of_TypeScript_with_React\"><\/span><strong>Overview of TypeScript with React<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>TypeScript is a missing part of the JavaScript or called as a subset of JavaScript. All feature of JavaScript is available in TypeScript. But TypeScript is one step ahead of JavaScript. It adds a powerful feature system. To enable code refactoring, navigation, type checking, etc.<\/p>\n<p>TypeScript is excellent on its own and does a lot to React to developers. A React Developer who adopt TypeScript says, they can\u2019t imagine their work without it. Moving on to use TypeScript with React, we need to have a sense of what TypeScript does to our JavaScript code. Let\u2019s jump in and look at what TypeScript adds to JavaScript code:<\/p>\n<ul>\n<li><strong>Type Interface<\/strong>: It infers data type of a variable<\/li>\n<li><strong>Type annotations<\/strong>: It allows us to assign types of variable<\/li>\n<li><strong>The never type<\/strong>: It use to represent the type of value that never occur<\/li>\n<li><strong>The unknown type<\/strong>: Help in reducing the use of \u2018any\u2019 and create more strong typed code<\/li>\n<li><strong>Intersection type<\/strong>: Combine existing types of forms with all members of the kind it based on<\/li>\n<li><strong>Union type<\/strong>: Allows to combine a new form of type using Pipe | character<\/li>\n<li>Make types reusable with generics.<\/li>\n<li>Strongly-typed arrays<\/li>\n<li>Strongly-typed tuples<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Benefits_of_React_App_using_TypeScript\"><\/span><strong>Benefits of React App using TypeScript<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you\u2019re working that why I need to use TypeScript for a React.Js project, Let\u2019s break your thought? Here, it shows how TypeScript makes frontend React development easier.<\/p>\n<ul>\n<li><strong>Readability and Validation:<\/strong><\/li>\n<\/ul>\n<p>It adds types of variables, functions, and properties with making your code far easier to read. TypeScript serves to eliminate React\u2019s PropTypes and makes react development easy.<\/p>\n<ul>\n<li><strong>Code Suggestions:<\/strong><\/li>\n<\/ul>\n<p>While typing code, TypeScript provides suggestions and options. It helps in saving a lot of effort and makes it easier for a new developer to use your source code. TypeScript is used for secure communication and in making codebase more consistent.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3921 size-full\" title=\"TypeScript\" src=\"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-content\/uploads\/2020\/06\/2.1.png\" alt=\"TypeScript\" width=\"1352\" height=\"662\" srcset=\"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-content\/uploads\/2020\/06\/2.1.png 1352w, https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-content\/uploads\/2020\/06\/2.1-300x147.png 300w, https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-content\/uploads\/2020\/06\/2.1-1024x501.png 1024w, https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-content\/uploads\/2020\/06\/2.1-768x376.png 768w\" sizes=\"auto, (max-width: 1352px) 100vw, 1352px\" \/><\/p>\n<p style=\"text-align: center;\">Source: <a href=\"https:\/\/blog.bitsrc.io\/\" target=\"_blank\" rel=\"nofollow\">https:\/\/blog.bitsrc.io\/<\/a><\/p>\n<ul>\n<li><strong>Catch Errors and IntelliSense:<\/strong><\/li>\n<\/ul>\n<p>TypeScript can highlight errors as soon as they show up. It pops up the mistake before running a code, which saves them time and fixes bug before ahead.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3922 size-full\" title=\"Catch Errors and IntelliSense\" src=\"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-content\/uploads\/2020\/06\/2.2.png\" alt=\"Catch Errors and IntelliSense\" width=\"1206\" height=\"494\" srcset=\"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-content\/uploads\/2020\/06\/2.2.png 1206w, https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-content\/uploads\/2020\/06\/2.2-300x123.png 300w, https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-content\/uploads\/2020\/06\/2.2-1024x419.png 1024w, https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-content\/uploads\/2020\/06\/2.2-768x315.png 768w\" sizes=\"auto, (max-width: 1206px) 100vw, 1206px\" \/><\/p>\n<p style=\"text-align: center;\">Source: <a href=\"https:\/\/blog.bitsrc.io\/\" target=\"_blank\" rel=\"nofollow\">https:\/\/blog.bitsrc.io\/<\/a><\/p>\n<ul>\n<li><strong>Accurate code maintenance and refactoring:<\/strong><\/li>\n<\/ul>\n<p>Once the codebase of the React app starts growing, it becomes difficult to read and maintain. Moreover, navigating these codebases can be a tedious job. TypeScript comes with a refactor code. It prevents typos from making it faster and updating it without changing any of its behavior.<\/p>\n<ul>\n<li><strong>Improves use of JavaScript:<\/strong><\/li>\n<\/ul>\n<p>TypeScript integrates with JavaScript and uses new features. The React project built with TypeScript compiles a version of JavaScript. It can run on any browsers.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"When_to_use_TypeScript\"><\/span><strong>When to use TypeScript?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you\u2019re working on a project that will long last, start using TypeScript from Day 1. Another great use is when you\u2019re creating any library, you should write it in TypeScript. It helps react developers to predict the inputs and will help to find errors.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_to_configure_TypeScript\"><\/span><strong>How to configure TypeScript?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The TypeScript gives the options to configure the compiler. Configure strictly based on your needs and prioritize the types of errors. The configurations are done in the tsconfig.json file which locates at the root of a project. When a new object passed, TypeScript applies the default configuration.<\/p>\n<p>Let\u2019s set up TypeScript in React App<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_1_Create_a_new_React_App_using_create-react-app_v21_or_higher\"><\/span><strong>Step 1: Create a new React App using create-react-app v2.1 or higher<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>If you want to set up a new project, use &#8211; &#8211; typescript as a parameter and unique project will set up using typescript.<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"601\">npx create-react-app hello-tsx &#8211;typescript<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span class=\"ez-toc-section\" id=\"Step_2_Add_TypeScript_to_existing_create-react-app_project\"><\/span><strong>Step 2: Add TypeScript to existing create-react-app project<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>If you\u2019re looking to add TypeScript to an existing app, install TypeScript and other needed types. Start the server by renaming the file .ts or .tsx.<\/p>\n<table style=\"height: 110px;\" width=\"823\">\n<tbody>\n<tr style=\"height: 76px;\">\n<td style=\"height: 76px; width: 792px;\">npm install &#8211;save typescript @types\/node @types\/react @types\/react-dom @types\/jest<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span class=\"ez-toc-section\" id=\"Step_3_Add_TypeScript_to_React_when_not_using_create-react-app\"><\/span><strong>Step 3: Add TypeScript to React when not using create-react-app<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>If you don\u2019t want to create-react-app, then the most common way is to setup reacting using a webpack. Check how we can configure it.<\/p>\n<p><strong>3.1: Install Required Package<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"601\">npm install &#8211;save-dev typescript awesome-typescript-loader<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>3.1.1: TypeScript<\/strong><\/p>\n<p>The package is essential and responsible for compiling the TypeScript code to JavaScript code.<\/p>\n<p><strong>3.1.2: awesome-typescript-loader<\/strong><\/p>\n<p>Webpack only understands plain CSS, JavaScript, and HTML. It helps in communicating with typescript to compile TypeScript code to JavaScript code. Configure the compilation according to your needs.<\/p>\n<p><strong>3.2: Update the webpack configuration<\/strong><\/p>\n<p>After you install the packages, tell the format to the webpack using file extension .ts and .tsx. We need to tell a webpack which loader will handle these file formats.<\/p>\n<p style=\"padding-left: 30px;\">module.exports = {<br \/>\nentry: [<br \/>\npath.join(process.cwd(), &#8216;app\/app.tsx&#8217;), \/\/ or whatever the path of your root file is<br \/>\n]<br \/>\nmodule: {<br \/>\nrules:[{ test: \/\\.tsx?$\/, loader: &#8216;awesome-typescript-loader&#8217; }], \/\/ other loader configuration goes in the array<br \/>\nresolve: {extensions: [&#8216;.js&#8217;, &#8216;.jsx&#8217;, &#8216;.react.js&#8217;, &#8216;.ts&#8217;, &#8216;.tsx&#8217;]}<br \/>\n}<br \/>\n}<\/p>\n<p style=\"text-align: left;\"><strong>Source:<\/strong> GitHub<\/p>\n<p><strong>3.3: Add TypeScript configuration file<\/strong><\/p>\n<p>Add configure file in the root of the project. Modify the file and add it as per your needs.<\/p>\n<p style=\"padding-left: 30px;\">{<br \/>\n&#8220;compilerOptions&#8221;: {<br \/>\n&#8220;sourceMap&#8221;: true,<br \/>\n&#8220;noImplicitAny&#8221;: true,<br \/>\n&#8220;module&#8221;: &#8220;commonjs&#8221;,<br \/>\n&#8220;target&#8221;: &#8220;es5&#8221;,<br \/>\n&#8220;jsx&#8221;: &#8220;react&#8221;<br \/>\n},<br \/>\n&#8220;include&#8221;: [&#8220;.\/app\/**\/*&#8221;]<br \/>\n}<\/p>\n<p style=\"text-align: left;\"><strong>Source:<\/strong> GitHub<\/p>\n<p>Restart your server and get ready to write in TypeScript<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_4_Next_steps\"><\/span><strong>Step 4: Next steps<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The above pointers were the basic intro to TypeScript. It majorly focuses on how to setup TypeScript in various state of React projects.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Summary\"><\/span><strong>Summary<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>One can use React and TypeScript together in the best way with taking a bit of learning. But the benefits will immensely pay off in the long run. In the above article, we have covered the common use cases, third-party libraries, and more. If you\u2019re currently facing the problems in creating a react app using TypeScript. <span style=\"text-decoration: underline;\"><strong><a href=\"https:\/\/www.concettolabs.com\/hire-reactjs-developer\" target=\"_blank\" rel=\"nofollow\">Hire react developer<\/a><\/strong><\/span> who has excellent knowledge to share with you.<\/p>\n<style>\n.blog-block-1{background:url(https:\/\/www.concettolabs.com\/blog\/wp-content\/uploads\/2020\/08\/app-development.png);background-position: center;background-repeat: no-repeat;background-size: cover;width:100%;margin: 0 auto;padding: 20px 60px 80px;text-align: center; }.blog-block-1 h3{font-size: 40px;color: #fff;line-height: 60px;text-align:center;}.blog-block-1 p{color: #fff;font-size: 20px;}a.blog-btn-1{padding:10px 30px;background: #fbbf13;color: #fff!important;font-size: 18px;border: 0;cursor: poi<span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span>nter; text-align:center}.blog-block-1 p{text-align:center;color:#fff!important;}<\/style>\n<p>&nbsp;<\/p>\n<div class=\"blog-block-1\">\n<h3><span class=\"ez-toc-section\" id=\"Create_a_React_App_Using_Typescript\"><\/span>Create a React App Using Typescript<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><a class=\"blog-btn-1\" href=\"https:\/\/www.concettolabs.com\/inquiry\" target=\"_blank\" rel=\"nofollow\">Contact Us<\/a><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_71 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/#Overview_of_TypeScript_with_React\" title=\"Overview of TypeScript with React\">Overview of TypeScript with React<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/#Benefits_of_React_App_using_TypeScript\" title=\"Benefits of React App using TypeScript\">Benefits of React App using TypeScript<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/#When_to_use_TypeScript\" title=\"When to use TypeScript?\">When to use TypeScript?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/#How_to_configure_TypeScript\" title=\"How to configure TypeScript?\">How to configure TypeScript?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/#Step_1_Create_a_new_React_App_using_create-react-app_v21_or_higher\" title=\"Step 1: Create a new React App using create-react-app v2.1 or higher\">Step 1: Create a new React App using create-react-app v2.1 or higher<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/#Step_2_Add_TypeScript_to_existing_create-react-app_project\" title=\"Step 2: Add TypeScript to existing create-react-app project\">Step 2: Add TypeScript to existing create-react-app project<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/#Step_3_Add_TypeScript_to_React_when_not_using_create-react-app\" title=\"Step 3: Add TypeScript to React when not using create-react-app\">Step 3: Add TypeScript to React when not using create-react-app<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/#Step_4_Next_steps\" title=\"Step 4: Next steps\">Step 4: Next steps<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/#Summary\" title=\"Summary\">Summary<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/#Create_a_React_App_Using_Typescript\" title=\"Create a React App Using Typescript\">Create a React App Using Typescript<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n","protected":false},"excerpt":{"rendered":"<p>React, and TypeScript are two remarkable technologies used by several developers. If you\u2019re a React developer, you might have heard about TypeScript. It\u2019s a statically typed superset of JavaScript which makes its faster and more robust React apps. React and TypeScript both work hand-in-hand to alleviate some react drawbacks. TypeScript comes with a learning curve. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3925,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[40],"tags":[1979,1980,1981,1982,1983,1984],"class_list":["post-3920","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to-guides","tag-create-react-app-typescript","tag-create-react-app-typescript-redux","tag-hire-react-developer","tag-react-and-typescript","tag-react-app-using-typescript","tag-typescript-and-react"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Create a React App Using Typescript - concettolabs<\/title>\n<meta name=\"description\" content=\"If you\u2019re currently facing the problems in creating a react app using TypeScript. Hire react developer who has excellent knowledge to share with you.\" \/>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create a React App Using Typescript - concettolabs\" \/>\n<meta property=\"og:description\" content=\"If you\u2019re currently facing the problems in creating a react app using TypeScript. Hire react developer who has excellent knowledge to share with you.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/\" \/>\n<meta property=\"og:site_name\" content=\"concettolabs\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/manish.patel.710\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-02T08:16:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-content\/uploads\/2020\/06\/react-typescript.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1170\" \/>\n\t<meta property=\"og:image:height\" content=\"540\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Manish Patel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/withmanish\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Manish Patel\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/\",\"url\":\"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/\",\"name\":\"Create a React App Using Typescript - concettolabs\",\"isPartOf\":{\"@id\":\"https:\/\/websitelaravel.concettoprojects.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-content\/uploads\/2020\/06\/react-typescript.jpg\",\"datePublished\":\"2020-06-02T08:16:40+00:00\",\"dateModified\":\"2020-06-02T08:16:40+00:00\",\"author\":{\"@id\":\"https:\/\/websitelaravel.concettoprojects.com\/blog\/#\/schema\/person\/b27e0500ea2f536f7f0f5e7ab13566b9\"},\"description\":\"If you\u2019re currently facing the problems in creating a react app using TypeScript. Hire react developer who has excellent knowledge to share with you.\",\"breadcrumb\":{\"@id\":\"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/#primaryimage\",\"url\":\"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-content\/uploads\/2020\/06\/react-typescript.jpg\",\"contentUrl\":\"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-content\/uploads\/2020\/06\/react-typescript.jpg\",\"width\":1170,\"height\":540,\"caption\":\"React App Typescript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/websitelaravel.concettoprojects.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a React App Using Typescript\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/websitelaravel.concettoprojects.com\/blog\/#website\",\"url\":\"https:\/\/websitelaravel.concettoprojects.com\/blog\/\",\"name\":\"concettolabs\",\"description\":\"Just another WordPress site\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/websitelaravel.concettoprojects.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/websitelaravel.concettoprojects.com\/blog\/#\/schema\/person\/b27e0500ea2f536f7f0f5e7ab13566b9\",\"name\":\"Manish Patel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/websitelaravel.concettoprojects.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-content\/uploads\/2022\/03\/manish2-96x96.png\",\"contentUrl\":\"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-content\/uploads\/2022\/03\/manish2-96x96.png\",\"caption\":\"Manish Patel\"},\"description\":\"Manish Patel is a Co-Founder of Concetto Labs, a leading mobile app development company specialized in android and iOS app development. We provide a one-stop solution for all IT related services.\",\"sameAs\":[\"https:\/\/websitelaravel.concettoprojects.com\/blog\",\"https:\/\/www.facebook.com\/manish.patel.710\",\"https:\/\/in.linkedin.com\/in\/manishpatel2509\",\"https:\/\/x.com\/https:\/\/twitter.com\/withmanish\"],\"url\":\"https:\/\/websitelaravel.concettoprojects.com\/blog\/author\/manish-patel\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create a React App Using Typescript - concettolabs","description":"If you\u2019re currently facing the problems in creating a react app using TypeScript. Hire react developer who has excellent knowledge to share with you.","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Create a React App Using Typescript - concettolabs","og_description":"If you\u2019re currently facing the problems in creating a react app using TypeScript. Hire react developer who has excellent knowledge to share with you.","og_url":"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/","og_site_name":"concettolabs","article_author":"https:\/\/www.facebook.com\/manish.patel.710","article_published_time":"2020-06-02T08:16:40+00:00","og_image":[{"width":1170,"height":540,"url":"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-content\/uploads\/2020\/06\/react-typescript.jpg","type":"image\/jpeg"}],"author":"Manish Patel","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/withmanish","twitter_misc":{"Written by":"Manish Patel","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/","url":"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/","name":"Create a React App Using Typescript - concettolabs","isPartOf":{"@id":"https:\/\/websitelaravel.concettoprojects.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/#primaryimage"},"image":{"@id":"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/#primaryimage"},"thumbnailUrl":"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-content\/uploads\/2020\/06\/react-typescript.jpg","datePublished":"2020-06-02T08:16:40+00:00","dateModified":"2020-06-02T08:16:40+00:00","author":{"@id":"https:\/\/websitelaravel.concettoprojects.com\/blog\/#\/schema\/person\/b27e0500ea2f536f7f0f5e7ab13566b9"},"description":"If you\u2019re currently facing the problems in creating a react app using TypeScript. Hire react developer who has excellent knowledge to share with you.","breadcrumb":{"@id":"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/#primaryimage","url":"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-content\/uploads\/2020\/06\/react-typescript.jpg","contentUrl":"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-content\/uploads\/2020\/06\/react-typescript.jpg","width":1170,"height":540,"caption":"React App Typescript"},{"@type":"BreadcrumbList","@id":"https:\/\/websitelaravel.concettoprojects.com\/blog\/create-a-react-app-using-typescript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/websitelaravel.concettoprojects.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Create a React App Using Typescript"}]},{"@type":"WebSite","@id":"https:\/\/websitelaravel.concettoprojects.com\/blog\/#website","url":"https:\/\/websitelaravel.concettoprojects.com\/blog\/","name":"concettolabs","description":"Just another WordPress site","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/websitelaravel.concettoprojects.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/websitelaravel.concettoprojects.com\/blog\/#\/schema\/person\/b27e0500ea2f536f7f0f5e7ab13566b9","name":"Manish Patel","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/websitelaravel.concettoprojects.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-content\/uploads\/2022\/03\/manish2-96x96.png","contentUrl":"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-content\/uploads\/2022\/03\/manish2-96x96.png","caption":"Manish Patel"},"description":"Manish Patel is a Co-Founder of Concetto Labs, a leading mobile app development company specialized in android and iOS app development. We provide a one-stop solution for all IT related services.","sameAs":["https:\/\/websitelaravel.concettoprojects.com\/blog","https:\/\/www.facebook.com\/manish.patel.710","https:\/\/in.linkedin.com\/in\/manishpatel2509","https:\/\/x.com\/https:\/\/twitter.com\/withmanish"],"url":"https:\/\/websitelaravel.concettoprojects.com\/blog\/author\/manish-patel\/"}]}},"_links":{"self":[{"href":"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-json\/wp\/v2\/posts\/3920","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-json\/wp\/v2\/comments?post=3920"}],"version-history":[{"count":0,"href":"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-json\/wp\/v2\/posts\/3920\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-json\/wp\/v2\/media\/3925"}],"wp:attachment":[{"href":"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-json\/wp\/v2\/media?parent=3920"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-json\/wp\/v2\/categories?post=3920"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/websitelaravel.concettoprojects.com\/blog\/wp-json\/wp\/v2\/tags?post=3920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}