<?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: Enigma</title>
    <description>The latest articles on DEV Community by Enigma (@enigma13).</description>
    <link>https://dev.to/enigma13</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%2F555906%2F1dbd8847-1c6a-477d-9513-b8bd09159b5c.png</url>
      <title>DEV Community: Enigma</title>
      <link>https://dev.to/enigma13</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/enigma13"/>
    <language>en</language>
    <item>
      <title>Why you should use Vite in your next React App.</title>
      <dc:creator>Enigma</dc:creator>
      <pubDate>Wed, 26 Apr 2023 09:47:45 +0000</pubDate>
      <link>https://dev.to/enigma13/why-you-should-use-vite-in-your-next-react-app-23k6</link>
      <guid>https://dev.to/enigma13/why-you-should-use-vite-in-your-next-react-app-23k6</guid>
      <description>&lt;p&gt;React is a popular JavaScript library that is used to create dynamic user interfaces for web applications. It was created by Facebook and is now managed by Facebook and a developer community.&lt;/p&gt;

&lt;p&gt;React enables developers to build reusable UI components that can be applied to elaborate user interfaces. &lt;/p&gt;

&lt;p&gt;React allows developers to build reusable UI components that can be used to create complex user interfaces. It uses a declarative approach to building user interfaces, which means that developers can focus on describing what they want their UI to look like, and React takes care of the underlying logic.&lt;/p&gt;

&lt;p&gt;There are other popular ways to set up a new React app; this article focuses on using Vite.&lt;/p&gt;

&lt;p&gt;Vite is a build tool that's designed to optimize the development experience by providing a faster and more efficient way to develop web applications. &lt;/p&gt;

&lt;p&gt;If you're planning to create a React app, you may want to consider using Vite as your build tool. &lt;/p&gt;

&lt;h2&gt;
  
  
  Reasons why you should always use Vite for building React apps
&lt;/h2&gt;

&lt;p&gt;Faster development&lt;/p&gt;

&lt;p&gt;Vite offers a quicker development experience by utilizing a server-side rendering strategy that enables quicker code compilation and hot module replacement.&lt;br&gt;
 As a result, any changes you make to your code will be updated instantly without requiring a page reload. This can greatly save time spent on tasks and boost output, especially when working on complex applications.&lt;/p&gt;

&lt;p&gt;Bundling codes effectively&lt;/p&gt;

&lt;p&gt;Vite uses a productive code bundling system that is tailored for contemporary browsers. This implies that your code will be packaged in a manner that is performance-optimized, leading to quicker page loads and a better user experience overall. This is vital for online apps in particular because user pleasure greatly depends on application speed.&lt;/p&gt;

&lt;p&gt;Support for emerging web technologies&lt;/p&gt;

&lt;p&gt;Vite is a fantastic option for developing contemporary web apps because it is made to integrate with cutting-edge web technologies like ES6, JSX, and TypeScript. Additionally, it supports CSS preprocessing languages like Sass, Less, and Stylus, which can make it simpler to manage your CSS code.&lt;/p&gt;

&lt;p&gt;Straightforward configuration&lt;/p&gt;

&lt;p&gt;Because Vite's configuration is intended to be straightforward and simple to grasp, developers of all ability levels can use it. &lt;br&gt;
The learning curve for new developers might be lowered as a result, making it simpler to begin creating React apps.&lt;/p&gt;

&lt;p&gt;Community support &lt;/p&gt;

&lt;p&gt;Through forums, documentation, and other tools, large and active developer communities actively contribute to Vite's development. This might be a useful tool for both experienced professionals who want to remain up-to-date on best practices and techniques and those who are new to React and Vite.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to set up a new React app with Vite
&lt;/h2&gt;

&lt;p&gt;To set up a new React project with Vite, you will first need to make sure you have Nodejs installed on your machine. You can download and install Nodejs &lt;a href="//nodejs.org"&gt;HERE&lt;/a&gt;  for free if you don’t have it! &lt;/p&gt;

&lt;p&gt;Open your file explorer to the folder you want to navigate to, double-click on the path at the top, delete everything, type “cmd”, and click Enter. This should open up your terminal. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bCOUbmD3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f0jns9im3oic3gxk27i7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bCOUbmD3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f0jns9im3oic3gxk27i7.png" alt="Image description" width="465" height="141"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Type the following command.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm create vite@latest  mynew-app – – template react&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This will create a new application named &lt;strong&gt;“mynew-app”&lt;/strong&gt;. You can also change it to what your project is about. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ysE2aTD_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/al3jiaqmvlf10bttk4m2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ysE2aTD_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/al3jiaqmvlf10bttk4m2.png" alt="Image description" width="800" height="80"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Note that we use &lt;strong&gt;– – template&lt;/strong&gt; react to show that we are using Vite to build a new React App. &lt;/p&gt;

&lt;p&gt;The next step is to navigate into the project’s folder using the cd command&lt;/p&gt;

&lt;p&gt;&lt;code&gt;cd  mynew-app&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--iAEpwlr2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/swhydno3ze54efkehwvc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--iAEpwlr2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/swhydno3ze54efkehwvc.png" alt="Image description" width="470" height="132"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This will take us to the new project’s directory. &lt;/p&gt;

&lt;p&gt;Open your new project from your  Vscode editor by running code .&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KtI4SC4W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hahjed8vovjm561n5sh9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KtI4SC4W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hahjed8vovjm561n5sh9.png" alt="Image description" width="469" height="145"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The next step is to install npm in your project. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kimV9DqZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y93smspmbg11ol7oyt1e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kimV9DqZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y93smspmbg11ol7oyt1e.png" alt="Image description" width="541" height="64"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can do that by opening the Vscode terminal, by clicking (ctrl + ` ) on Windows, or from the top menu bar, click on "Terminal" and then select "New Terminal".&lt;/p&gt;

&lt;p&gt;Type  npm install  in your Vscode terminal&lt;/p&gt;

&lt;p&gt;The last step is to run the server, you are to use &lt;/p&gt;

&lt;p&gt;npm run dev &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--931uZXTv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/faeimsmr06dt951475d4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--931uZXTv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/faeimsmr06dt951475d4.png" alt="Image description" width="725" height="282"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This will start the server and you just have to hold ctrl and click on the link to open your new app on the browser &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--FTEU7vuc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ps05me191yqxmsphckcf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FTEU7vuc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ps05me191yqxmsphckcf.png" alt="Image description" width="566" height="256"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And it'd automatically open up the browser &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--04Nepg5P--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/txyu54zrh40uuab0v7ol.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--04Nepg5P--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/txyu54zrh40uuab0v7ol.png" alt="Image description" width="800" height="429"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Violaa, our “mynew-app” is ready. You can then proceed to your app.jsx file to start customizing your app&lt;/p&gt;

&lt;p&gt;We just learned how to set up Vite; the whole process can be done in a couple of minutes. Vite is a great tool for everyone trying to speed up their web applications.  &lt;/p&gt;

&lt;p&gt;In conclusion, using Vite for creating React apps can provide a faster and more efficient development experience, as well as improved performance and support for modern web technologies. If you're looking for a better way to build React apps, consider using Vite as your build tool.&lt;/p&gt;

</description>
      <category>react</category>
      <category>vite</category>
      <category>javascript</category>
      <category>node</category>
    </item>
    <item>
      <title>Backend</title>
      <dc:creator>Enigma</dc:creator>
      <pubDate>Sat, 09 Jan 2021 10:32:51 +0000</pubDate>
      <link>https://dev.to/enigma13/backend-20p0</link>
      <guid>https://dev.to/enigma13/backend-20p0</guid>
      <description>&lt;p&gt;Hello I just finished learning HTML CSS and some javascript, but I don't understand the backend or how it works, I can't host or publish my work please can someone help me please, I'm learning on my own&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>go</category>
      <category>programming</category>
      <category>ccodepen</category>
    </item>
  </channel>
</rss>
