<?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: Ajay Agrawal</title>
    <description>The latest articles on DEV Community by Ajay Agrawal (@ajayff4).</description>
    <link>https://dev.to/ajayff4</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%2F706782%2F7c3c19ec-160a-4cf3-b45e-05129b23035f.png</url>
      <title>DEV Community: Ajay Agrawal</title>
      <link>https://dev.to/ajayff4</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ajayff4"/>
    <language>en</language>
    <item>
      <title>Its time to retire the CRA</title>
      <dc:creator>Ajay Agrawal</dc:creator>
      <pubDate>Mon, 14 Feb 2022 21:03:03 +0000</pubDate>
      <link>https://dev.to/ajayff4/its-time-to-retire-the-cra-3ohp</link>
      <guid>https://dev.to/ajayff4/its-time-to-retire-the-cra-3ohp</guid>
      <description>&lt;p&gt;Hi there, I am Ajay and, this is my 1st post on this platform. So mistakes are expected. Pardon me for that and guide me through.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/Ajayff4/hello-world" rel="noopener noreferrer"&gt;Check this out what we will discuss today&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's dive into the topic of today's discussion. I usually like to work with the MERN stack for web apps. Recently I noticed that now CRA (create-react-app) is making the build too slow and, it takes ages to start the project.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2ox0hkxizq3xm0z9de4e.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2ox0hkxizq3xm0z9de4e.gif" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This encouraged me to get out of bed and look for some alternatives and I started to look for the resource to create the react app from the scratch.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F862pr4po5424ri5o4oh0.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F862pr4po5424ri5o4oh0.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I decided to meet the almighty YouTube. After looking into some of the YouTube videos I found that they are making the project from the scratch, but it is not something which I was looking for. Which made me feel like...&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff5wouxwsfjho7rrlkdn0.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff5wouxwsfjho7rrlkdn0.gif" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So I decided to look more on articles until I finally found something useful which helped me to actually creates the entire project from the scratch.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxqxzemf92j8z5dj1pgxx.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxqxzemf92j8z5dj1pgxx.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Which helped me to create this hello-world project by configuring everything by myself. Which includes...&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Configuring webpack&lt;/li&gt;
&lt;li&gt;Creating the project structure&lt;/li&gt;
&lt;li&gt;Creating the distributable production build&lt;/li&gt;
&lt;li&gt;Support to compile css/scss/sass files along with React components to make the project complete.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  RESULT TIME
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8m7m2gtpjb0k98hdti57.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8m7m2gtpjb0k98hdti57.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This project is the simple hello world project that does nothing just greets you, coz it's up to you what you transform it into. It also supports HMR aka Hot Module Replacement via devServer.&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;As we can see, manual configuration adds less than half dependencies to the project which, is what we need to extend our projects in actual scenarios and, it isn't much possible with CRA due to having so many dependencies pre-configured.&lt;/p&gt;

&lt;p&gt;CRA adds many dependencies which are not required for most of the users on their projects but they cannot remove them easily, which is painful to carry over as the project grows.&lt;/p&gt;

&lt;h2&gt;
  
  
  ADVATAGES OF USING THIS PROJECT...
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Very fewer dependencies lightweight and, lightning-fast app, runs under 3 seconds.&lt;/li&gt;
&lt;li&gt;Includes all aspects of development JS, CSS, Testing, Production build.&lt;/li&gt;
&lt;li&gt;You can contribute to this project to make it more useful for everyone who wants to work on React but is tired due to CRA.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  REFERENCE TIME
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://levelup.gitconnected.com/freedom-from-create-react-app-how-to-create-react-apps-without-cra-27fadeb79c82" rel="noopener noreferrer"&gt;Check this article for step-by-step explaination on how this project is made&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you like this project, please let me know your thoughts.&lt;br&gt;
If you are willing to contribute to this, please give me a knock on any of these platforms...&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.instagram.com/ajayff4/" rel="noopener noreferrer"&gt;Insta&lt;/a&gt; - &lt;a href="https://twitter.com/Ajayff4" rel="noopener noreferrer"&gt;Twitter&lt;/a&gt; - &lt;a href="https://www.linkedin.com/in/ajayff4/" rel="noopener noreferrer"&gt;Linkedin&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;See yaa until we meet next!!!&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1ne6nrf214y5dlnizkiw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1ne6nrf214y5dlnizkiw.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>cra</category>
      <category>react</category>
      <category>javascript</category>
      <category>ajayff4</category>
    </item>
  </channel>
</rss>
