		
		{"id":18319,"date":"2024-04-17T11:06:01","date_gmt":"2024-04-17T11:06:01","guid":{"rendered":"http:\/\/localhost\/netizens_12_aug\/?p=11510"},"modified":"2024-04-17T11:06:01","modified_gmt":"2024-04-17T11:06:01","slug":"vite-react-app","status":"publish","type":"post","link":"https:\/\/netizens.netizens.dev\/br\/blog\/vite-react-app\/","title":{"rendered":"Learn How to Set Up Your React App with Vite Today"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">If you have ever used Create React App (CRA), you are aware that it can be a slow process. It takes a while to start, and it reloads slowly after you make changes.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Vite is not like that. It&#8217;s incredibly quick. The browser instantly updates when you make changes to your code. This is known as Hot Module Replacement, or HMR.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Consider it this way: Vite is like teleporting to work instantly, whereas CRA is like walking slowly!<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">What Do You Need?<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Make sure you have Node.js installed before beginning (v16 or higher is ideal). A code editor such as Visual Studio Code, and a fundamental understanding of using the terminal to run commands<\/span><\/p>\n<p><span style=\"font-weight: 400;\">That&#8217;s it! Nothing more is required of you.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Step 1 \u2013 Create Your Project<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Open your terminal and type:<\/span><\/p>\n<div style=\"background: #000; color: #fff; font-weight: bold; padding: 6px 12px; font-size: 16px;\">Terminal<\/div>\n<pre style=\"background: #f8f8f8; color: #333; padding: 0 12px 12px 12px; margin: 0; font-size: 18px; line-height: 1.5; overflow-x: auto;\"><code>\n<span style=\"color: #999;\"># Create a new React Vite app<\/span>\n<span style=\"color: #0000cc; font-weight: bold;\">npm<\/span> create vite@latest my-react-app\n<\/code><\/pre>\n<p><span style=\"font-weight: 400;\">It will ask you a few questions:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Project name \u2013 pick any name, like <\/span><span style=\"font-weight: 400;\">my-react-app<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Framework \u2013 choose React<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Variant \u2013 pick JavaScript or TypeScript<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">This sets up a fresh React project using Vite.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Step 2 \u2013 Install and Explore<\/span><\/h2>\n<p><b>Go into your project folder and install the packages:<\/b><\/p>\n<div style=\"background: #000; color: #fff; font-weight: bold; padding: 6px 12px; font-size: 16px;\">Terminal<\/div>\n<pre style=\"background: #f8f8f8; color: #333; padding: 0 12px 12px 12px; margin: 0; font-size: 18px; line-height: 1.5; overflow-x: auto;\"><code>\n<span style=\"color: #999;\"># Navigate to the project folder<\/span>\n<span style=\"color: #0000cc; font-weight: bold;\">cd<\/span> my-react-app\n\n<span style=\"color: #999;\"># Install project dependencies<\/span>\n<span style=\"color: #0000cc; font-weight: bold;\">npm<\/span> install\n<\/code><\/pre>\n<p><b>Here\u2019s what your project looks like:<\/b><\/p>\n<div style=\"background: #000; color: #fff; font-weight: bold; padding: 6px 12px; font-size: 16px;\">Project Structure<\/div>\n<pre style=\"background: #f8f8f8; color: #333; padding: 0 12px 12px 12px; margin: 0; font-size: 18px; line-height: 1.5; overflow-x: auto;\"><code>\nmy-react-app\/\n\u251c\u2500 <span style=\"color: #0000cc; font-weight: bold;\">index.html<\/span> \u00a0 \u00a0 \u00a0 &lt;- Main HTML file\n\u251c\u2500 <span style=\"color: #0000cc; font-weight: bold;\">package.json<\/span> \u00a0 \u00a0&lt;- Project info and dependencies\n\u251c\u2500 <span style=\"color: #0000cc; font-weight: bold;\">vite.config.js<\/span> \u00a0 &lt;- Vite settings\n\u2514\u2500 <span style=\"color: #0000cc; font-weight: bold;\">src\/<\/span>\n   \u251c\u2500 <span style=\"color: #0000cc; font-weight: bold;\">main.jsx<\/span> \u00a0 \u00a0 &lt;- React starting point\n   \u2514\u2500 <span style=\"color: #0000cc; font-weight: bold;\">App.jsx<\/span> \u00a0 \u00a0 \u00a0&lt;- Main React component\n<\/code><\/pre>\n<p><span style=\"font-weight: 400;\">These are the files you\u2019ll mostly work with at the start.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Step 3 \u2013 Run Your App<\/span><\/h2>\n<p><b>Start the app with:<\/b><\/p>\n<div style=\"background: #000; color: #fff; font-weight: bold; padding: 6px 12px; font-size: 16px;\">Terminal<\/div>\n<pre style=\"background: #f8f8f8; color: #333; padding: 0 12px 12px 12px; margin: 0; font-size: 18px; line-height: 1.5; overflow-x: auto;\"><code>\n<span style=\"color: #999;\"># Start the development server<\/span>\n<span style=\"color: #0000cc; font-weight: bold;\">npm<\/span> run dev\n<\/code><\/pre>\n<p><span style=\"font-weight: 400;\">Open the URL, it shows (usually <\/span><span style=\"font-weight: 400;\">http:\/\/localhost:5173<\/span><span style=\"font-weight: 400;\">).<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Modify something in App.jsx, and the browser will update immediately. You will save a great deal of waiting time with Vite&#8217;s lightning-fast HMR.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Step 4 \u2013 Vite Configuration (Optional)<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Vite comes with a simple config file: <\/span><span style=\"font-weight: 400;\">vite.config.js<\/span><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><b>Here\u2019s an example:<\/b><\/p>\n<div style=\"background: #000; color: #fff; font-weight: bold; padding: 6px 12px; font-size: 16px;\">JavaScript<\/div>\n<pre style=\"background: #f8f8f8; color: #333; padding: 0 12px 12px 12px; margin: 0; font-size: 18px; line-height: 1.5; overflow-x: auto;\"><code>\n<span style=\"color: #0000cc; font-weight: bold;\">import<\/span> { defineConfig } <span style=\"color: #0000cc; font-weight: bold;\">from<\/span> <span style=\"color: #a31515;\">'vite'<\/span>\n<span style=\"color: #0000cc; font-weight: bold;\">import<\/span> react <span style=\"color: #0000cc; font-weight: bold;\">from<\/span> <span style=\"color: #a31515;\">'@vitejs\/plugin-react'<\/span>\n\n<span style=\"color: #0000cc; font-weight: bold;\">export default<\/span> defineConfig({\n  plugins: [react()],\n  server: {\n    port: 3000,\n  },\n  base: <span style=\"color: #a31515;\">'.\/'<\/span>,\n})\n<\/code><\/pre>\n<p><span style=\"font-weight: 400;\">You can use it to:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Change the port your app runs on<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Add extra plugins<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Set a base path for production<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Most of the time, you don\u2019t need to change anything at the start.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Step 5 \u2013 Build for Production<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">When your app is ready to go live, run:<\/span><\/p>\n<div style=\"background: #000; color: #fff; font-weight: bold; padding: 6px 12px; font-size: 16px;\">Terminal<\/div>\n<pre style=\"background: #f8f8f8; color: #333; padding: 0 12px 12px 12px; margin: 0; font-size: 18px; line-height: 1.5; overflow-x: auto;\"><code>\n<span style=\"color: #999;\"># Build the project for production<\/span>\n<span style=\"color: #0000cc; font-weight: bold;\">npm<\/span> run build\n<\/code><\/pre>\n<p><span style=\"font-weight: 400;\">This generates a dist\/ folder containing all the files required for your application to function. It&#8217;s similar to organizing your app for the web.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Summary<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Using Vite instead of CRA makes React development:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Much faster<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Easier to set up<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Fun because you see changes instantly<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">With Vite, you can now begin your React journey and benefit from a lean project structure, quicker workflow, and instant feedback.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Also Read<\/span><\/h2>\n<p><a href=\"https:\/\/netizens.netizens.dev\/br\/blog\/django-vs-flask\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Django vs Flask: Which Python Framework Should You Choose?<\/span><\/a><\/p>\n<p><a href=\"https:\/\/netizens.netizens.dev\/br\/blog\/joi-database-full-guide-to-features-security-and-faq\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Complete Guide to Joi Database: Features, Security, and FAQs<\/span><\/a><\/p>\n<p><a href=\"https:\/\/netizens.netizens.dev\/br\/blog\/mysql-create-tables\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">How to Create Tables in MySQL: Step-by-Step Tutorial<\/span><\/a><\/p>\n<p><a href=\"https:\/\/netizens.netizens.dev\/br\/blog\/json-decoder-jsondecodeerror-expecting-value-line-1-column-1-char-0\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Fix JSONDecodeError: Expecting Value at Line 1 Column 1 (char 0)<\/span><\/a><\/p>\n<h2><span style=\"font-weight: 400;\">FAQs<\/span><\/h2>\n<div style=\"margin: 10px 0; line-height: 33px;\">\n<div style=\"padding: 10px 0; border-bottom: 1px solid #ddd;\">\n<h3 style=\"margin: 0 0 6px;\">1. What is Vite, and why should I use it for React?<\/h3>\n<p style=\"margin: 0;\">Vite is a cutting-edge build tool that speeds up and streamlines React development. Changes you make are instantly displayed in the browser thanks to its instant Hot Module Replacement (HMR) feature.<\/p>\n<\/div>\n<div style=\"padding: 10px 0; border-bottom: 1px solid #ddd;\">\n<h3 style=\"margin: 0 0 6px;\">2. How is Vite different from Create React App (CRA)?<\/h3>\n<p style=\"margin: 0;\">Particularly during development and startup, Vite is significantly faster than CRA. While Vite uses more recent tools like Rollup and native ES modules, CRA uses Webpack, which can be slower.<\/p>\n<\/div>\n<div style=\"padding: 10px 0; border-bottom: 1px solid #ddd;\">\n<h3 style=\"margin: 0 0 6px;\">3. What are the prerequisites for creating a React Vite app?<\/h3>\n<p style=\"margin: 0;\">You only need:<\/p>\n<ul style=\"margin: 5px 0 0 20px;\">\n<li>Node.js (v16+)<\/li>\n<li>A code editor like VS Code<\/li>\n<li>Basic knowledge of running commands in the terminal<\/li>\n<\/ul>\n<\/div>\n<div style=\"padding: 10px 0; border-bottom: 1px solid #ddd;\">\n<h3 style=\"margin: 0 0 6px;\">4. What is vite.config.js, and do I need to modify it?<\/h3>\n<p style=\"margin: 0;\">Vite&#8217;s configuration file is vite.config.js. It can be used to set paths, modify the server port, and add plugins. The default configuration is typically adequate for novices.<\/p>\n<\/div>\n<div style=\"padding: 10px 0; border-bottom: 1px solid #ddd;\">\n<h3 style=\"margin: 0 0 6px;\">5. Can I migrate an existing CRA project to Vite?<\/h3>\n<p style=\"margin: 0;\">Indeed! Vite offers easy-to-follow instructions for migrating CRA projects. The speed advantages outweigh any configuration changes that might be necessary.<\/p>\n<\/div>\n<div style=\"padding: 10px 0;\">\n<h3 style=\"margin: 0 0 6px;\">6. How do I run my React Vite app locally?<\/h3>\n<p style=\"margin: 0;\">Navigate to your project folder, install dependencies, and run:<\/p>\n<p style=\"margin: 0;\">npm install<\/p>\n<p style=\"margin: 0;\">npm run dev<\/p>\n<\/div>\n<\/div>\n<p><script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntity\": [{\n    \"@type\": \"Question\",\n    \"name\": \"1. What is Vite, and why should I use it for React?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"Vite is a cutting-edge build tool that speeds up and streamlines React development. Changes you make are instantly displayed in the browser thanks to its instant Hot Module Replacement (HMR) feature.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"2. How is Vite different from Create React App (CRA)?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"Particularly during development and startup, Vite is significantly faster than CRA. While Vite uses more recent tools like Rollup and native ES modules, CRA uses Webpack, which can be slower.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"3. What are the prerequisites for creating a React Vite app?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"You only need:\nNode.js (v16+)\nA code editor like VS Code\nBasic knowledge of running commands in the terminal\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"4. What is vite.config.js, and do I need to modify it?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"Vite's configuration file is vite.config.js. It can be used to set paths, modify the server port, and add plugins. The default configuration is typically adequate for novices.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"5. Can I migrate an existing CRA project to Vite?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"Indeed! Vite offers easy-to-follow instructions for migrating CRA projects. The speed advantages outweigh any configuration changes that might be necessary.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"6. How do I run my React Vite app locally?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"Navigate to your project folder, install dependencies, and run:\nnpm install\nnpm run dev\"\n    }\n  }]\n}\n<\/script><\/p>","protected":false},"excerpt":{"rendered":"<p>If you have ever used Create React App (CRA), you are aware that it can be a slow process. It takes a while to start, and it reloads slowly after you make changes. Vite is not like that. It&#8217;s incredibly quick. The browser instantly updates when you make changes to your code. This is known [&hellip;]<\/p>","protected":false},"author":2,"featured_media":19092,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[176,1011],"tags":[1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097],"class_list":["post-18319","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-information","category-other","tag-create-vite-react-app","tag-how-to-build-vite-react-app","tag-how-to-create-a-react-app-with-vite","tag-how-to-create-react-app-using-vite","tag-how-to-run-vite-react-app","tag-how-to-start-a-vite-react-app","tag-how-to-use-vite-with-react","tag-npm-vite-react","tag-vite-react","tag-vite-react-app","tag-vite-react-native","tag-vite-react-plugin","tag-vite-react-project","tag-vite-react-router","tag-vite-react-styled-components","tag-vite-react-swc","tag-vite-react-typescript","tag-what-is-vite-react"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>The Ultimate Guide to Starting a React App with Vite<\/title>\n<meta name=\"description\" content=\"Learn to create a lightning-fast React Vite app with step-by-step setup, instant HMR, and production-ready build guidance.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/netizens.netizens.dev\/br\/blog\/vite-react-app\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The Ultimate Guide to Starting a React App with Vite\" \/>\n<meta property=\"og:description\" content=\"Learn to create a lightning-fast React Vite app with step-by-step setup, instant HMR, and production-ready build guidance.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/netizens.netizens.dev\/br\/blog\/vite-react-app\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-17T11:06:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/netizens.netizens.dev\/wp-content\/uploads\/2024\/04\/vite-react-app.png\" \/>\n\t<meta property=\"og:image:width\" content=\"645\" \/>\n\t<meta property=\"og:image:height\" content=\"360\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. tempo de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/netizens.netizens.dev\/blog\/vite-react-app\/\",\"url\":\"https:\/\/netizens.netizens.dev\/blog\/vite-react-app\/\",\"name\":\"The Ultimate Guide to Starting a React App with Vite\",\"isPartOf\":{\"@id\":\"https:\/\/netizens.netizens.dev\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/netizens.netizens.dev\/blog\/vite-react-app\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/netizens.netizens.dev\/blog\/vite-react-app\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/netizens.netizens.dev\/wp-content\/uploads\/2024\/04\/vite-react-app.png\",\"datePublished\":\"2024-04-17T11:06:01+00:00\",\"dateModified\":\"2024-04-17T11:06:01+00:00\",\"author\":{\"@id\":\"https:\/\/netizens.netizens.dev\/#\/schema\/person\/5db7227e686a10a4126a2c19b8b70517\"},\"description\":\"Learn to create a lightning-fast React Vite app with step-by-step setup, instant HMR, and production-ready build guidance.\",\"breadcrumb\":{\"@id\":\"https:\/\/netizens.netizens.dev\/blog\/vite-react-app\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/netizens.netizens.dev\/blog\/vite-react-app\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/netizens.netizens.dev\/blog\/vite-react-app\/#primaryimage\",\"url\":\"https:\/\/netizens.netizens.dev\/wp-content\/uploads\/2024\/04\/vite-react-app.png\",\"contentUrl\":\"https:\/\/netizens.netizens.dev\/wp-content\/uploads\/2024\/04\/vite-react-app.png\",\"width\":645,\"height\":360,\"caption\":\"Vite react app\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/netizens.netizens.dev\/blog\/vite-react-app\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/netizens.netizens.dev\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Learn How to Set Up Your React App with Vite Today\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/netizens.netizens.dev\/#website\",\"url\":\"https:\/\/netizens.netizens.dev\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/netizens.netizens.dev\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/netizens.netizens.dev\/#\/schema\/person\/5db7227e686a10a4126a2c19b8b70517\",\"name\":\"admin admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/netizens.netizens.dev\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b0f87bbe7cdbfbd534a40fea7d9d02021e6d3772c3949940e8de2e3df278fb2f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b0f87bbe7cdbfbd534a40fea7d9d02021e6d3772c3949940e8de2e3df278fb2f?s=96&d=mm&r=g\",\"caption\":\"admin admin\"},\"sameAs\":[\"https:\/\/netizens.netizens.dev\"],\"url\":\"https:\/\/netizens.netizens.dev\/br\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The Ultimate Guide to Starting a React App with Vite","description":"Learn to create a lightning-fast React Vite app with step-by-step setup, instant HMR, and production-ready build guidance.","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:\/\/netizens.netizens.dev\/br\/blog\/vite-react-app\/","og_locale":"pt_BR","og_type":"article","og_title":"The Ultimate Guide to Starting a React App with Vite","og_description":"Learn to create a lightning-fast React Vite app with step-by-step setup, instant HMR, and production-ready build guidance.","og_url":"https:\/\/netizens.netizens.dev\/br\/blog\/vite-react-app\/","article_published_time":"2024-04-17T11:06:01+00:00","og_image":[{"width":645,"height":360,"url":"https:\/\/netizens.netizens.dev\/wp-content\/uploads\/2024\/04\/vite-react-app.png","type":"image\/png"}],"author":"admin admin","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"admin admin","Est. tempo de leitura":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/netizens.netizens.dev\/blog\/vite-react-app\/","url":"https:\/\/netizens.netizens.dev\/blog\/vite-react-app\/","name":"The Ultimate Guide to Starting a React App with Vite","isPartOf":{"@id":"https:\/\/netizens.netizens.dev\/#website"},"primaryImageOfPage":{"@id":"https:\/\/netizens.netizens.dev\/blog\/vite-react-app\/#primaryimage"},"image":{"@id":"https:\/\/netizens.netizens.dev\/blog\/vite-react-app\/#primaryimage"},"thumbnailUrl":"https:\/\/netizens.netizens.dev\/wp-content\/uploads\/2024\/04\/vite-react-app.png","datePublished":"2024-04-17T11:06:01+00:00","dateModified":"2024-04-17T11:06:01+00:00","author":{"@id":"https:\/\/netizens.netizens.dev\/#\/schema\/person\/5db7227e686a10a4126a2c19b8b70517"},"description":"Learn to create a lightning-fast React Vite app with step-by-step setup, instant HMR, and production-ready build guidance.","breadcrumb":{"@id":"https:\/\/netizens.netizens.dev\/blog\/vite-react-app\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/netizens.netizens.dev\/blog\/vite-react-app\/"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/netizens.netizens.dev\/blog\/vite-react-app\/#primaryimage","url":"https:\/\/netizens.netizens.dev\/wp-content\/uploads\/2024\/04\/vite-react-app.png","contentUrl":"https:\/\/netizens.netizens.dev\/wp-content\/uploads\/2024\/04\/vite-react-app.png","width":645,"height":360,"caption":"Vite react app"},{"@type":"BreadcrumbList","@id":"https:\/\/netizens.netizens.dev\/blog\/vite-react-app\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/netizens.netizens.dev\/"},{"@type":"ListItem","position":2,"name":"Learn How to Set Up Your React App with Vite Today"}]},{"@type":"WebSite","@id":"https:\/\/netizens.netizens.dev\/#website","url":"https:\/\/netizens.netizens.dev\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/netizens.netizens.dev\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Person","@id":"https:\/\/netizens.netizens.dev\/#\/schema\/person\/5db7227e686a10a4126a2c19b8b70517","name":"admin admin","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/netizens.netizens.dev\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b0f87bbe7cdbfbd534a40fea7d9d02021e6d3772c3949940e8de2e3df278fb2f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b0f87bbe7cdbfbd534a40fea7d9d02021e6d3772c3949940e8de2e3df278fb2f?s=96&d=mm&r=g","caption":"admin admin"},"sameAs":["https:\/\/netizens.netizens.dev"],"url":"https:\/\/netizens.netizens.dev\/br\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/netizens.netizens.dev\/br\/wp-json\/wp\/v2\/posts\/18319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netizens.netizens.dev\/br\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netizens.netizens.dev\/br\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netizens.netizens.dev\/br\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/netizens.netizens.dev\/br\/wp-json\/wp\/v2\/comments?post=18319"}],"version-history":[{"count":0,"href":"https:\/\/netizens.netizens.dev\/br\/wp-json\/wp\/v2\/posts\/18319\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netizens.netizens.dev\/br\/wp-json\/wp\/v2\/media\/19092"}],"wp:attachment":[{"href":"https:\/\/netizens.netizens.dev\/br\/wp-json\/wp\/v2\/media?parent=18319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netizens.netizens.dev\/br\/wp-json\/wp\/v2\/categories?post=18319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netizens.netizens.dev\/br\/wp-json\/wp\/v2\/tags?post=18319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}