<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: bart</title>
    <description>The latest articles on DEV Community by bart (@atahtee).</description>
    <link>https://dev.to/atahtee</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F945509%2Fb7bce891-4026-4f66-893d-d56eba9a0ef6.jpeg</url>
      <title>DEV Community: bart</title>
      <link>https://dev.to/atahtee</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/atahtee"/>
    <language>en</language>
    <item>
      <title>Creating React App Using Vite</title>
      <dc:creator>bart</dc:creator>
      <pubDate>Wed, 05 Jul 2023 21:27:13 +0000</pubDate>
      <link>https://dev.to/atahtee/creating-react-app-using-vite-3omo</link>
      <guid>https://dev.to/atahtee/creating-react-app-using-vite-3omo</guid>
      <description>&lt;p&gt;I recently found out that create-react-app was no longer being supported which forced me to try other methods of creating a react app. I was so disappointed when I came to learn of the use of Vite because of how easy and fast it was to create a react app. Another of it's pros is that it's not a react-specific tool so you have the flexibility and can use it in creating other frameworks like Vue.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;To start using vite, you navigate to your project directory, and run this:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm create vite@latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Choose the project name which will also be the project's folder name.&lt;/li&gt;
&lt;li&gt;Choose a framework, then select your preferred variant whereby you can optionally &lt;a href="https://github.com/vitejs/vite-plugin-react-swc"&gt;add swc&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Navigate to the project folder and cd into it.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd vitetest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Run the project
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm run
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Install the dependencies by running
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Run the app using
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and voila, your app should be running on port http:/localhost/5173.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
