<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rajendra Dhami on Medium]]></title>
        <description><![CDATA[Stories by Rajendra Dhami on Medium]]></description>
        <link>https://medium.com/@raazthemystery273?source=rss-478ea383be5b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*EQEHXniQiopCnxeD.jpg</url>
            <title>Stories by Rajendra Dhami on Medium</title>
            <link>https://medium.com/@raazthemystery273?source=rss-478ea383be5b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 14:15:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@raazthemystery273/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Setting up a React App from scratch with Webpack and Babel]]></title>
            <link>https://medium.com/@raazthemystery273/setting-up-a-react-app-from-scratch-with-webpack-and-babel-fb1add2d5830?source=rss-478ea383be5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb1add2d5830</guid>
            <category><![CDATA[babel]]></category>
            <category><![CDATA[webpack-5]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript-bundler]]></category>
            <dc:creator><![CDATA[Rajendra Dhami]]></dc:creator>
            <pubDate>Tue, 24 Sep 2024 15:33:56 GMT</pubDate>
            <atom:updated>2024-09-24T15:33:56.140Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*42BwAoXZvEcqG9C3" /></figure><p>Pre-requisite:</p><ol><li><strong>Node.js</strong> installed and accessible from command line. Verify using node -v (for node) and npm -v (for package manager) command for their respective versions, if they both give a version, we are good.</li><li>Any code editor, I’d suggest <strong>VSCode</strong>, well, because it is good.</li><li>Keep <strong>Webpack 5</strong> (<a href="https://webpack.js.org/concepts/">https://webpack.js.org/concepts/</a>) and <strong>Babel</strong> (<a href="https://babeljs.io/docs/">https://babeljs.io/docs/</a>) official documentation open (read and learn more while you follow the article).</li><li>Basic knowledge of HTML, CSS and JavaScript and React. If you have worked with React before, excellent.</li></ol><p><strong><em>Please note, that it is going to be a long article, but if you follow this step by step, you will know everything that you are doing.</em></strong></p><p>Let’s go!.</p><p>1. Create a new folder inside VSCode and open terminal using Control + backtick .</p><p>2. Run npm init this will walk you through some questions (keep clicking enter) and create a package.jsonfile for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pf5vuxvn5Wr_jZqBdPwDgg.png" /></figure><p>3. Then install these dependencies react and react-dom using this command: npm i react react-dom . It will create a new file package-lock.json (has version history of all dependencies, <strong>do not change</strong>) and a new folder node_modules where all dependencies get downloaded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3bLax63_AvalrllIBYYI8Q.png" /><figcaption>npm init</figcaption></figure><p>4. Download some devDependencies (dependencies vs devDependencies <a href="https://docs.npmjs.com/specifying-dependencies-and-devdependencies-in-a-package-json-file">https://docs.npmjs.com/specifying-dependencies-and-devdependencies-in-a-package-json-file</a>)webpack , webpack-cli , webpack-dev-server using command: npm i -D webpack webpack-cli-webpack-dev-server . Webpack is a bundler for your project, it will bundle your entire JS files alongwith any assets (like images, fonts, etc). It can also minify and transform your modern JavaScript code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jOk-Z8XufBzL0-EjHFa3FQ.png" /><figcaption>package.json</figcaption></figure><p>5. Let’s now create a src folder and create an entry point for our React app just like create-react-app (<a href="https://create-react-app.dev/">https://create-react-app.dev/</a>) does. Add a new file inside that, name could be anything, maybe index.js and add few lines of code. All lines are self explanatory (with comments).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2JNhiWxoyd2tuvsCFarVMQ.png" /><figcaption>index.js</figcaption></figure><p>6. Now, we have an entry point but nothing will work because we still have to write webpack configuration (we can get away without writing one as well, maybe try it out on your own?). So let’s write one. First, create a new file named webpack.config.js at the root level. And add some configuration inside. Few things that you should know,<br>1. Every webpack config file is supposed to export an object which contains following properties, <br>entry -&gt; entry point for your app (webpack will start bundling from this file) (<a href="https://webpack.js.org/concepts/entry-points/">https://webpack.js.org/concepts/entry-points/</a>)<br>output -&gt; where will this bundled code go, which file, etc. (<a href="https://webpack.js.org/concepts/output/">https://webpack.js.org/concepts/output/</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*48plCPl2cXt5zI9ukgiw7w.png" /><figcaption>webpack.config.js</figcaption></figure><p>2. Add a script to your package.json file for bundling the app. Running npx webpack is also fine, at the end that’s what we are going to do anyway. Else, once you add it to package.json file, open your terminal in root folder and run npm run webpack . This will create a new public folder in your root and inside it you will see bundle.js file, which will have all the converted code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-4-IFwnp9x0YH4TDeFy4lw.png" /><figcaption>webpack script</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JrGigXqmSqMAZmOs4F6T6w.png" /><figcaption>bundled app</figcaption></figure><p>You see we get a warning for not providing mode option to your webpack configuration. Let’s do that as well. Options could be development or production . (<a href="https://webpack.js.org/configuration/mode">https://webpack.js.org/configuration/mode</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1zDVYjUwPfzBWE7lTtrBUw.png" /><figcaption>mode: development</figcaption></figure><p>We are still far away from comparing this with create-react-app , for starter, it doesn’t have hot reloading, can’t see what are we doing on browser, no React code so far, etc. So, let’s write some React code and try to do the same thing.</p><p>Created a simple React component called an App inside App.js file and exported it. Imported it inside index.js file and gave to root.render method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bi-l3tOYtIzOMFVsmbKwiQ.png" /><figcaption>Sample App component</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zaru7jd7OZ6bW7EbGqiyrg.png" /><figcaption>Using App</figcaption></figure><p>Now let’s try to create a build again by running webpack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YLpn_LVqZfhyNGLshWGhuw.png" /><figcaption>Bundling failed</figcaption></figure><p>Interesting enough? Problem here is that &lt;App /&gt; is JSX, which browser doesn’t understand and neither webpack directly. You obviously need to help webpack understand JSX.</p><p>So, you might feel smart enough to convert JSX to plain JS by replacing &lt;App /&gt; with React.createElement(App) and give it to render but it will again fail, and this time for App.js file because it also has JSX.</p><p>One solution would be to convert App.js to return React element without using JSX and same goes for index.js file as well, replace &lt;App /&gt; with React.createElement(App). And there it goes, working fine now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IfTp08nCN58BXW_Yda_EPg.png" /><figcaption>React component using plain JS</figcaption></figure><p>Do check your bundle.js file as well.</p><p>Although there is nothing wrong with this, you don’t wanna follow this while creating your application, it can just give you nightmares while writing code. JSX is the way to go.</p><p>So, now you know that why it failed, so, how can we help webpack? A transpiler called as <strong>Babel</strong> (<a href="https://babeljs.io/docs/">https://babeljs.io/docs/</a>) will help us all. Idea is that, webpack will take help of Babel to understand JSX. Let’ see how we can add Babel to webpack.</p><p>1. Install babel first using npm install --save-dev @babel/core @babel/cli @babel/preset-env babel-loader , this will download everything related to babel. (<a href="https://babeljs.io/docs/usage">https://babeljs.io/docs/usage</a>)<br>Babel core (<a href="https://babeljs.io/docs/babel-core">https://babeljs.io/docs/babel-core</a>) is the library where core functionalities of babel lies. You can opt-out of babel cli (<a href="https://babeljs.io/docs/babel-cli">https://babeljs.io/docs/babel-cli</a>) if you want, it is for letting run babel commands directly from cli. preset-env (<a href="https://babeljs.io/docs/babel-preset-env">https://babeljs.io/docs/babel-preset-env</a>) allows you to write modern JS code without worrying about any transforms required to run on older browsers. For ex. some browsers don’t support arrow functions, preset-env will take care of converting your arrow to ES5 function. So, ES5 -&gt; ES6 wherever required. babel-loader (<a href="https://webpack.js.org/loaders/babel-loader/#root">https://webpack.js.org/loaders/babel-loader/#root</a>) will be used inside webpack config file to notify webpack to make use of babel.</p><p>2. Create a config file for babel as well in the root with name babel.config.json and add a presets array with @babel/preset-env inside.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aZkN6pIl7mG-s4FTdtg_2g.png" /><figcaption>babel config</figcaption></figure><p>3. Now, undo your changes in App and index files to JSX code. Let’s try webpack command again? ….. Well, it failed again with the exact same error we started with. Welcome to checkpoint 0. What happened here is that, although you did everything, but you never told webpack to use babel as well. So, webpack has no clue that babel needs to used for transpiling the code. Let’s do this as well. For this you will need to know a property called as module which takes an object. This object has another property called as rules for defining which files need to use which library befoore webpack can process it. In our case, we need to tell webpack to process JS/JSX files with Babel first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nRGO5-DVbtLmof8e5oYE7w.png" /><figcaption>Rule for using babel</figcaption></figure><p>4. Are we done now? Well, let’s try again and see for ourselves…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5jyMXGBryBADmaG92vtjHA.png" /><figcaption>bundling failed because of JSX</figcaption></figure><p>5. Well, it failed yet again. But this is not because babel isn’t working, babel is working fine but babel just like webpack, doesn’t handle jsx by default, we might need to provide it with another preset. And answer is right there at in the last box. It clearly says the name of the preset as well. So, let’s download and add it to our babel presets (<a href="https://babeljs.io/docs/babel-preset-react">https://babeljs.io/docs/babel-preset-react</a>). Install it using npm install -D <a href="http://twitter.com/babel/preset-react">@babel/preset-react</a> .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YXxi47Q9nEKKHZ07-zF4JQ.png" /><figcaption>Babel preset react</figcaption></figure><p>So, now are done? Let’s try our luck again, shall we?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Es2W8SqyO-75DVSGXy49qA.png" /><figcaption>Bundling successful</figcaption></figure><p>Well, it works fine now! We can now truly write JSX and very well bundle it.</p><p>But is that enough? If you see your public folder, all you get is a bundle.js file but where is an HTML file to see the work in our browser? Do we create it manually and add bundle.js as script? What do we do? Well, we don’t have to do it. We just need to configure our webpack to generate one. We will use HtmlWebpackPlugin in this case. It can generate an HTML file for us and also inject any dependency into the HTML file automatically, in our example, bundle.js will get injected into this HTML file.</p><p>Adding plugins is fairly simple in webpack, you just need to add a property called as plugins which takes an array of plugins to be used.</p><p>We can add HtmlWebpackPlugin (<a href="https://webpack.js.org/plugins/html-webpack-plugin/#root">https://webpack.js.org/plugins/html-webpack-plugin/#root</a>) using command: npm i -D html-webpack-plugin . After this we can add this code inside webpack.config.js .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TNAHLzv3gXwC3MmTLlL1_A.png" /><figcaption>HtmlWebpackPlugin setup</figcaption></figure><p>Now if we run webpack command again, you should see an index.html file as well inside your public folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OW6T5JUqNm-jY-HABNFLKQ.png" /><figcaption>Generated html file</figcaption></figure><p>You can actually run this html file in your browser and see the output for yourself. You will need to serve this public folder as a server or if you want to html file directly in browser by simple pasting its path, you will need to tweak your html file to add ./ in front of bundle.js script injection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*fM0NDlet74VbpahA6eAhnQ.png" /></figure><p>Oh well, you should encounter an error in your console and UI would be empty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pzq1fSaxrIVKqSh1GeDBZg.png" /></figure><p>Well this error is pretty simple to resolve, go back to any react app and read index.js file where we have written, document.getElementById(“root”) and now check your index.html file generated by webpack, do you see any root element inside? You won’t because webpack doesn’t know we need to add it add, so it didn’t even bother doing it. Now, want to still run it without rebuilding? Just add a root element inside html file on your own. &lt;div id=&quot;root&quot;&gt;&lt;/div&gt; . And then refresh the browser page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7PC2ptgasffGHVWjdsPJMA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*t9_psEdUGmGjwZ-wZFNoPA.png" /></figure><p>We are up and running!</p><p>But let’s just automate this, shall we? Otherwise we will have to make this change every time we build our app and it’s not okay when it can be handled automatically. We will need to create a template html file to let the webpack know that we want our HTML file to look like the one we created. Then we will have to add it to HtmlWebpackPlugin as a template property. (<a href="https://github.com/jantimon/html-webpack-plugin#options">https://github.com/jantimon/html-webpack-plugin#options</a>)</p><p>So, I created a new folder called as utils, inside it I created my html template file index.html, it has a new title and a root div inside. Then I passed this information to webpack config file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S0CVToRXcPXJ4MjR2L9lxw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AiH7C3KZeHLPM27hPRjuig.png" /></figure><p>Now, if you run webpack again, you should see public -&gt; index.html, similar to the template that you have created. Only difference would be a new dependency being added which is nothing but your bundled code bundle.js . Now, you can run this index.html file directly without modifying it on your own.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J2s0WMxSNUcAbP5pDffCOQ.png" /></figure><p>Nice, we are now done with bundling, a viewable build, index file with our own content. This should be enough to take a basic app live.</p><p>But, how do we watch our project while building it? We can watch our project as we build with creact-react-app. For this, we can take help of webpack-dev-server (<a href="https://webpack.js.org/guides/development/#using-webpack-dev-server">https://webpack.js.org/guides/development/#using-webpack-dev-server</a>) (<a href="https://webpack.js.org/configuration/dev-server">https://webpack.js.org/configuration/dev-server</a>) provided by webpack. We can add this using command: npm i -D webpack-dev-server . Then we need to add the configuration inside webpack.config.js by adding a new property to root named devServer and this is accept an object specifying port where you want your app to be visible (3000 in our case) and folder you want to show as app (public folder in our case).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9BhMam0B2F0wifrjiAOPZA.png" /></figure><p>We will also add a new script to run webpack in watch mode, this should take care of even hot reloading.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QLgRVJudAqnQ1AkyBVETlg.png" /></figure><p>Now run, our favourite npm run start to run our application. You will see that it opens the browser and loads your app on 3000 port automatically (just like create-react-app).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o1v8CZaxXAkvkiGq9DFGNw.png" /></figure><p>You will also see that the terminal is still active, as it is in watch mode right now, so if you make any change in your application, it will automatically update your UI. Try it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l1kvBZokdhS1k6bPmoGdNA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*QMKWWvAmKcsalbnKlHKT5g.png" /></figure><p>While we are at it, let’s also try to add some CSS to our app, shall we? You can use inline styling as well. I will create one App.css file to add some pretty basic styling.</p><p>Inline styling worked fine but external stylesheet…… ah, well you got an error, which is kind of similar to one we have seen earlier, and you might already know what needs to be done here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zj-OM7eevA1rUY0vDNjGQA.png" /></figure><p>You might have guess it right by now, that webpack again don’t know how to what to do to a CSS file, so let’s help webpack by adding a css loader (<a href="https://webpack.js.org/loaders/css-loader/#root">https://webpack.js.org/loaders/css-loader/#root</a>). We can add a css-loader using command: npm i -D css-loader and then let webpack know that css files need to be handles by css loader.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bHcUPmMKb5V0s57H7s3T9Q.png" /></figure><p>Now, run start command again and you won’t see any error but you won’t see styling working either, really bad!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ESdViwqxNj58UEmbW9P0iA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*FJFZ5q_Y-1zvd0ey6eG6IA.png" /></figure><p>Interesting, that we are doing everything right here, yet our CSS somehow isn’t showing up, no error on console either. What might be wrong here? Well, it is webpack again, see the css-loader only helps you with letting import css files into React app. But what to do with css is something webpack doesn’t know. So, to make it work, we need one more loader called as style-loader (<a href="https://webpack.js.org/loaders/style-loader/">https://webpack.js.org/loaders/style-loader/),</a> this will surely take care of injecting CSS into your app and then it it should work just fine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hMOeeqR56_DpLB4H3o7eFA.png" /></figure><p>Sorry, forgot to let you know that, use can accept an array of strings as well as string as value, if single then string is fine, else feel free to use an array for either single or multiple loaders.</p><p>Now try running start command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*lTGfX_Kmy4zQfu0VhPXnDw.png" /></figure><p>Everything works fine now. So, a webapp without images, fonts won’t look complete right? Let’s try to use some downloaded images. Download any image and put it in any folder of your choice. I will create an assets folder and keep images there. Image url: <a href="https://pbs.twimg.com/profile_images/1785867863191932928/EpOqfO6d_400x400.png">https://pbs.twimg.com/profile_images/1785867863191932928/EpOqfO6d_400x400.png</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mo8-p2tfnYEBVhcURG-TBA.png" /></figure><p>Let’s add this to our App component and check. You can use this image by importing it and passing it to img element, like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fnRKRieNPVaaC5d_xCTrqQ.png" /></figure><p>and if your app was already running, you might end up seeing this error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EeFr4zgYMqezMsTyHybidw.png" /></figure><p>and with this, I am 100% sure, you know what it is pointing to. Yea, same webpack thing that it doesn’t support assets like images, videos, etc without adding a loader. But now you don’t really need to download an another loader, webpack comes with it out of the box, although you will still have to write it in the configuration file (<a href="https://webpack.js.org/guides/asset-management/#loading-images">https://webpack.js.org/guides/asset-management/#loading-images</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4g37NOqXAcXavpAsu_ty8w.png" /></figure><p>Now, rerun your app, and now React logo should be visible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*BNJbuswRMF1qPS8IIENYHA.png" /></figure><p>Now, what about fonts? Just like images, fonts can be loaded with the same configuration, you just need to change the test value to match fonts extension. Refer below code, and try the usage yourself (<a href="https://webpack.js.org/guides/asset-management/#loading-fonts">https://webpack.js.org/guides/asset-management/#loading-fonts</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QFu7fiWnYaRHe1IOREk-DA.png" /></figure><p>What about video then? Download this video from here: <a href="https://ia800106.us.archive.org/25/items/archive-video-files/test.mp4">https://ia800106.us.archive.org/25/items/archive-video-files/test.mp4</a></p><p>Add it to your assets folder and try to use it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qE6-TyElBG20wzK87kswtw.png" /></figure><p>and you end up with same old error</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YP3rlxmJVlubNg0u657k8A.png" /></figure><p>Nothing special here tho, because you never mintioned in the configuration that mp4 file will also be there in your app so webpack doesn’t know. Just specify that and your should be good. Also, add controls attribute to your video tag, I forgot in previous screenshot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GVfEBgzMp10j47GMBz__fQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*atCIdx0Rr3xmT3AiqYCAcA.png" /></figure><p>That’s it. JSX, Assets (images, videos, fonts), DevServer, Hot Reloading, Bundling, all handled.</p><p>One minor thing, create a component with extension .jsx and import it inside app and try to use it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q3Y5jgXOx-PEoatVN_jGmg.png" /></figure><p>It again gives an error. It can’t decide what exactly is the type of Counter file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XOTvj3vb8YFdfARg-kVBQQ.png" /></figure><p>because in the import path we did not give any extension to Counter. Let’s put .jsx and try. And also import React inside .jsx file, it starts working fine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*ZVDr4VcDX-khcPEBVveuSA.png" /></figure><p>But, usually, we don’t really do that in apps created using create-react-app, isn’t it? So, what should we be doing here? Well, one and only, write something in your webpack configuration, something called as resolve attribute (<a href="https://webpack.js.org/configuration/resolve/#resolve">https://webpack.js.org/configuration/resolve/#resolve</a>) which takes an object and this object has another attribute called as extensions (an array of file extensions) (<a href="https://webpack.js.org/configuration/resolve/#resolveextensions">https://webpack.js.org/configuration/resolve/#resolveextensions</a>) which is to let webpack know that if we have a file without extension, then try to add these extensions and resolve. Below code and also remove .jsx from Counter file import path inside App file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*HTKnlNq9r5FKjkVydM2fFQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RzmMqVqxQAByGs0PwZsYWg.png" /></figure><p>So, webpack will first read Counter[.js], realises it is not valid to tries Counter[.jsx], realises it is valid and resolves. Check your app now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3b3i3FK8mn4B9NIytkx7PQ.png" /></figure><p>That is finally it. You have done it! You have almost everything that a create-react-app has. In the next few articles, continuing this, we will also see how you can add react-router-dom to this and create different pages, routes and stuff. You can still do it but try going to a different route and reloading webpage (Cannot find bla bla), don’t worry, we will cover that as well. Again, this isn’t optimised at all. We will also cover that in upcoming articles. Typescript, Sass, etc. For now, this should be more than enough.</p><p>Github: <a href="https://github.com/rajdhami273/react-scratch-webpack-babel">https://github.com/rajdhami273/react-scratch-webpack-babel</a></p><p>Thanks for your patience, I hope you enjoyed this article. Let me know if you get stuck anywhere or have some questions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb1add2d5830" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ShadowDOM, a DOM you might be unaware of …]]></title>
            <link>https://medium.com/@raazthemystery273/shadowdom-a-dom-you-might-be-unaware-of-dc5697f28345?source=rss-478ea383be5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc5697f28345</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[document-object-model]]></category>
            <category><![CDATA[dom]]></category>
            <category><![CDATA[shadow-dom]]></category>
            <dc:creator><![CDATA[Rajendra Dhami]]></dc:creator>
            <pubDate>Fri, 19 Apr 2024 11:07:08 GMT</pubDate>
            <atom:updated>2024-04-19T11:07:08.409Z</atom:updated>
            <content:encoded><![CDATA[<h3>ShadowDOM, a DOM you might be unaware of …</h3><p><strong>Ever wondered how writing <em>&lt;input type=“file”&gt;</em> or <em>&lt;input type=“range”&gt;</em> gives a button and a range slider UI respectively?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pCizrE0ly8hfwuVd" /></figure><p>Welcome to powerful encapsulation technique called shadow DOM. This DOM structure is usually hidden but if you want to see it, enable “Show user agent shadow DOM” in Chrome Dev Tools -&gt; Settings (cog icon) -&gt; Preferences -&gt; elements tab. These elements are unreachable through normal CSS and JavaScript.</p><p>What you see below #shadow-root is a shadow DOM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e0QHTvxNh1yPkBgUTQjuOA.png" /><figcaption>Shadow DOM for input type file</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FuL_M9IGFHkXLRakC-9PCA.png" /><figcaption>Shadow DOM for input type range</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qWmm5mcob-vUXfKlhigkXA.png" /><figcaption>Way to style a shadow DOM</figcaption></figure><p>They are unaffected by outside CSS, they have their own stylesheets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L0zDYZbF0_FjeEVVoC4dwA.png" /></figure><p>In the above example, all p should be red, but inside the shadow DOM, p is unaffected.</p><p>Inbuilt shadow tress (shadow DOM) cannot be reached via JavaScript as well (following docs).</p><p>How to create shadow DOM?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*huP3e_aPKzElSJo3CO3ORw.png" /><figcaption>Create a shadow dom</figcaption></figure><pre>const shadow = elem.attachShadow({mode: &quot;open | closed&quot;});</pre><p>This piece of code will create a shadow tree and return the reference. Now you may attach whatever you want to this reference using basic DOM APIs.</p><p>If you want to access this outside, you can simply get the shadowParent (check above image line 50). Then you can access shadow elements by using <em>elem.shadowRoot</em> (provided mode is open).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*oB0LDJ6asaqvo3YE13r16Q.png" /><figcaption>Accessing shadow DOM</figcaption></figure><p>If mode was closed while creating, then they are not accessible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eLeb7Pq0eugvFz5EXQnF6g.png" /><figcaption>How to make unaccessible shadow DOM</figcaption></figure><p>All in all, this is a very powerful encapsulation technique using which you can create your own custom components in isolation from rest of the code making your component highly reusable without getting concerned about how the outside styling or markup may affect your component.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc5697f28345" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use i18next, react-i18next with server side support in React Native.]]></title>
            <link>https://medium.com/@raazthemystery273/how-to-use-i18next-react-i18next-with-server-side-support-in-react-native-bf9141e0f365?source=rss-478ea383be5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf9141e0f365</guid>
            <category><![CDATA[i18next]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[react-i18next]]></category>
            <category><![CDATA[internationalization]]></category>
            <dc:creator><![CDATA[Rajendra Dhami]]></dc:creator>
            <pubDate>Sat, 25 Jul 2020 15:10:26 GMT</pubDate>
            <atom:updated>2022-02-03T19:50:39.557Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*Td5d5Cu9mpzrvy30Tn4-qg.jpeg" /></figure><p>Hey people! Hope you are doing great :)</p><p>Okay so lets dive in :)</p><blockquote><strong>npm install i18next i18next-http-backend react-i18next axios react-native-localize</strong></blockquote><p>Do these and you are halfway there.</p><p>Now I usually like to keep services away from screens so I make a new folder called services and make a new file called <strong><em>i18n.js</em></strong> and this will contain the code responsible for translations</p><p>Once you are done creating the file lets fill it up with some reasonable code</p><blockquote><strong>import i18n from ‘i18next’;</strong></blockquote><blockquote><strong>import {initReactI18next} from ‘react-i18next’;</strong></blockquote><blockquote><strong>import {getLocales} from ‘react-native-localize’;</strong></blockquote><p>Imports done, let’s use these.</p><p>First we have to load the react-i18next (for react, just take a dive into its docs if you want to know more, it is a good thing.) module into the i18next library</p><blockquote><strong>i18n.use(initReactI18next)</strong></blockquote><p>then once loaded, we need to initialise it.</p><p>Now here we have many options so just dive into i18next library. I want to explain but you gotta understand, my sole purpose here is to show how to make this work. We can have a chat if you want</p><p>Tho i will tell you important ones and here it goes:</p><blockquote>lng: getLocales()[0].languageCode, //This is used to set init language.</blockquote><p>We are using react native localise to get the current device language code</p><blockquote>fallbackLng: ‘en’, //This is as the name suggests a fallback language if key not //found</blockquote><p>where key is the word you need translation for</p><p>resources: this is where you need to keep your key value pairs inside an object called as translations</p><p>which needs to be kept inside “langCode” object</p><p>ex:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fc20ba3bf7893ac92c2cfac9965d6009/href">https://medium.com/media/fc20ba3bf7893ac92c2cfac9965d6009/href</a></iframe><p>cool we are done!</p><p>wait don’t forget to export it</p><blockquote><strong>export default i18n;</strong></blockquote><p>So finally this is how your code will look like</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9b78585e48dc7346ab55118f58efd32a/href">https://medium.com/media/9b78585e48dc7346ab55118f58efd32a/href</a></iframe><p>Now I have already made my 2 screens where i will show you its use case.</p><p>Just know that i am using functional components and trust me you should too. It is super awesome.</p><p>And addition of react hooks make it super duper awesome. Actually that is why functional components became famous I guess.</p><p>Anyway now you just have to decide how you want to use this in your app.</p><p>Thing is <strong>react-i18next module </strong>is what makes translation extremely easy since it provides us with hooks!!</p><p>so your options goes like this:</p><p>OP1: call hooks in each page. TBH I do this, it is probably a bad idea and code duplication</p><p>OP2: call hooks in parent and pass them inside screenProps. Good idea, now onwards I might will use this</p><p>OP3: just hang on</p><p>I will show you all:</p><p>OP2: OP1 coming next</p><p>This is my <strong>App.js</strong> which use <strong>useTranslation()</strong> hook which gives us a translator function as well as i18n object which contains tons of things one of which is <strong>changeLaguage(LANG) </strong>function which takes a language as parameter</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c2b117b217ef2093d22a347ab22ab1b9/href">https://medium.com/media/c2b117b217ef2093d22a347ab22ab1b9/href</a></iframe><p>See this line no.6 explanation</p><p><strong>const initI18n = i18n;</strong></p><p><strong>This is important because this initialises the i18n. I hope you agree with me. to make it simple to understand, we only told i18n.js what to do but never told it when. This tells it to do it now. If you don’t do this you will not get anything inside i18n object plus t will not be ready either.</strong></p><blockquote><strong>const {t, i18n} = useTranslation(); //The hook</strong></blockquote><blockquote><strong>return &lt;Main screenProps={{t, i18n}} /&gt;;</strong></blockquote><p>// Passing down using screenProps</p><p>now inside Home.js</p><p>you can get those 2 using this</p><blockquote><strong>const {t, i18n} = props.screenProps;</strong></blockquote><p>Home.js code</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1e25c72b4bb95a9a8699cff4eccc2905/href">https://medium.com/media/1e25c72b4bb95a9a8699cff4eccc2905/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*rkeKcoteWS3lR196SmBMDg.gif" /></figure><p>Voila we are done for OP1!!!</p><p>Now coming to op2</p><p>It is simple don’t call useTranslation hook inside App.js</p><p>Just go to Home.js</p><blockquote>import {useTranslation} from ‘react-i18next’;</blockquote><p>inside component</p><blockquote>const {t,i18n}=useTranslation();</blockquote><p>there you go, you got them both.</p><p>OP3 is best for those who need changeLaguage() function at only one place</p><p>Just make a component which takes Text component as child or props and inside new component call the useTranslation() hook and get the t function. Pass the props or text children to t and that’s it.</p><p>ex:</p><p>TranslateText.js</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f120d3af2efa5474226f7525880f2f3b/href">https://medium.com/media/f120d3af2efa5474226f7525880f2f3b/href</a></iframe><p>inside Home.js</p><p>replace</p><blockquote><strong>&lt;Text&gt;{t(‘’)}&lt;/Text&gt;</strong></blockquote><p>with</p><blockquote><strong>&lt;TranslateText&gt;Hey Yo Im at home&lt;/TranslateText&gt;</strong></blockquote><p>That’s it no need to import hooks anywhere not even inside APP.js based on how you are using changeLanguage function</p><p>Next Post is more interesting because this is only for static texts.</p><p>We know texts keep on changing so is it a good idea to make a new build for each translation?</p><p>No! Right? So see you in the next post.</p><p>Welcome back :P</p><p>Storing static texts is fine if you know that likelihood of changing texts is less. If not then go with storing translation files on server and fetch them when you start your app</p><p>So everything accept <strong>i18n.js </strong>will remain as it is. We just have to change code in <strong>i18n.js</strong></p><p>So let’s start again.</p><p>I am making a minimal server just for this post. Make it according to your need.</p><p>Now my translation files are inside public folder.</p><p>I am using <strong>express.js</strong> and <strong>node.js</strong> for creating a server</p><p>You can see my directory structure and server code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*pgwCuFy7DJhg8p98ypmNUw.png" /></figure><p>server code:</p><p>app.js:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a8d71bb5393db4cc5091704e4de2b625/href">https://medium.com/media/a8d71bb5393db4cc5091704e4de2b625/href</a></iframe><p>run it</p><blockquote><strong>nodemon</strong> <strong>app</strong></blockquote><p>or</p><blockquote><strong>node</strong> <strong>app</strong></blockquote><p>Now comes the fun part</p><p>Remember we downloaded something called as i18next-http-backend?</p><p>Now is the time to use it in our demo.</p><p>Since it is a module you have to load load it using .use(MODULE)</p><p>ex:</p><blockquote><strong>import i18nHttpLoader from ‘i18next-http-backend’;</strong></blockquote><blockquote><strong>i18n.use(initReactI18next).use(i18nHttpLoader)</strong></blockquote><p>now inside the init method, lets do some interesting changes</p><p>add these:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ff3fe05b4a1199ccbb1499542e9d5f0c/href">https://medium.com/media/ff3fe05b4a1199ccbb1499542e9d5f0c/href</a></iframe><p>and this is it we are done!</p><p>Whole code? Here you go:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aac7146ad80b35787fe62d86520df010/href">https://medium.com/media/aac7146ad80b35787fe62d86520df010/href</a></iframe><p>Rest everything remains same.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1106UNZzVk_MqiX8FCNsZg.gif" /></figure><p>I would be glad to know if you feel something is wrong in this post. I know I did not dig deeper into stuffs but few things which I left can we read anywhere. I faced tons of issues while doing the 2nd part and even 1st one. So I thought it would be a good idea to give you an idea about how to make this work and tbh the doc of <strong>i18next-http-backend </strong>really sucks.</p><p>Credits to <a href="https://medium.com/u/1b40c2b94e6e">Iamnemexis</a> for helping me out with server side and many a tons of things almost everyday. Without him it would’ve been super difficult for me. <a href="https://medium.com/u/4be9fc5d326">Aditya Singh</a> for suggesting the i18n library as well as teaching React Native and Palash Rokade for all the support.</p><p>Thanks for reading and I really hope that it will help you.</p><p>About me, I work as a Full Stack Web Developer at a super cool startup called <a href="https://medium.com/u/d9c63d7b66">Morfsys</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf9141e0f365" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use i18next, react-i18next in React Native.]]></title>
            <link>https://medium.com/@raazthemystery273/how-to-use-i18next-react-i18next-in-react-native-f81ece184cd2?source=rss-478ea383be5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f81ece184cd2</guid>
            <category><![CDATA[internationalization]]></category>
            <category><![CDATA[react-i18next]]></category>
            <category><![CDATA[i18n]]></category>
            <category><![CDATA[i18next]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Rajendra Dhami]]></dc:creator>
            <pubDate>Sat, 04 Jul 2020 08:20:35 GMT</pubDate>
            <atom:updated>2022-02-03T19:49:37.132Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YiE_INHt8DpBjgAz6iRuAQ.jpeg" /></figure><p>Hey people! Hope you are doing great :)</p><p>This is my first ever post on Medium.</p><p>Okay, so lets dive in :P</p><blockquote><strong>npm install i18next react-i18next react-native-localize</strong></blockquote><p>Do this and you are halfway there.</p><p>Now I usually like to keep services away from screens so I make a new folder called services and make a new file called <strong><em>i18n.js</em></strong> and this will contain the code responsible for translations.</p><p>Once you are done creating the file lets fill it up with some reasonable code.</p><blockquote><strong>import i18n from ‘i18next’;</strong></blockquote><blockquote><strong>import {initReactI18next} from ‘react-i18next’;</strong></blockquote><blockquote><strong>import {getLocales} from ‘react-native-localize’;</strong></blockquote><p>Imports done, let’s use these.</p><p>First we have to load the react-i18next (for react, just take a dive into its docs if you want to know more, it is a good thing.) module into the i18next library,</p><blockquote><strong>i18n.use(initReactI18next)</strong></blockquote><p>then once loaded, we need to initialise it.</p><p>Now here we have many options so just dive into i18next library. I want to explain but you gotta understand, my sole purpose here is to show how to make this work. We can have a chat if you want to know more.</p><p>Tho i will tell you important ones and here it goes:</p><blockquote>lng: getLocales()[0].languageCode, //This is used to set init language.</blockquote><p>We are using react native localise to get the current device language code</p><blockquote>fallbackLng: ‘en’, //This is as the name suggests a fallback language if key not //found</blockquote><p>where key is the word you need translation for</p><p>resources: this is where you need to keep your key value pairs inside an object called as translations</p><p>which needs to be kept inside “langCode” object</p><p>ex:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fc20ba3bf7893ac92c2cfac9965d6009/href">https://medium.com/media/fc20ba3bf7893ac92c2cfac9965d6009/href</a></iframe><p>cool we are done!</p><p>wait don’t forget to export it</p><blockquote><strong>export default i18n;</strong></blockquote><p>So finally this is how your code will look like</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9b78585e48dc7346ab55118f58efd32a/href">https://medium.com/media/9b78585e48dc7346ab55118f58efd32a/href</a></iframe><p>Now I have already made my 2 screens where i will show you its use case.</p><p>Just know that i am using functional components and trust me you should too. It is super awesome.</p><p>And addition of react hooks make it super duper awesome. Actually that is why functional components became famous I guess.</p><p>Anyway now you just have to decide how you want to use this in your app.</p><p>Thing is <strong>react-i18next module </strong>is what makes translation extremely easy since it provides us with hooks!!</p><p>so your options goes like this:</p><p>OP1: call hooks in each page. TBH I do this, it is probably a bad idea and code duplication</p><p>OP2: call hooks in parent and pass them inside screenProps. Good idea, now onwards I might will use this</p><p>OP3: just hang on</p><p>I will show you all:</p><p>OP2: OP1 coming next</p><p>This is my <strong>App.js</strong> which use <strong>useTranslation()</strong> hook which gives us a translator function as well as i18n object which contains tons of things one of which is <strong>changeLaguage(LANG) </strong>function which takes a language as parameter</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c2b117b217ef2093d22a347ab22ab1b9/href">https://medium.com/media/c2b117b217ef2093d22a347ab22ab1b9/href</a></iframe><p>See this line no.6 explanation</p><p><strong>const initI18n = i18n;</strong></p><p><strong>This is important because this initialises the i18n. I hope you agree with me. to make it simple to understand, we only told i18n.js what to do but never told it when. This tells it to do it now. If you don’t do this you will not get anything inside i18n object plus t will not be ready either.</strong></p><blockquote><strong>const {t, i18n} = useTranslation(); //The hook</strong></blockquote><blockquote><strong>return &lt;Main screenProps={{t, i18n}} /&gt;;</strong></blockquote><p>// Passing down using screenProps</p><p>now inside Home.js</p><p>you can get those 2 using this</p><blockquote><strong>const {t, i18n} = props.screenProps;</strong></blockquote><p>Home.js code</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1e25c72b4bb95a9a8699cff4eccc2905/href">https://medium.com/media/1e25c72b4bb95a9a8699cff4eccc2905/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*rkeKcoteWS3lR196SmBMDg.gif" /></figure><p>Voila we are done for OP1!!!</p><p>Now coming to</p><p>OP2:</p><p>It is simple don’t call useTranslation hook inside App.js</p><p>Just go to Home.js and do following</p><blockquote>import {useTranslation} from ‘react-i18next’;</blockquote><p>inside component</p><blockquote>const {t,i18n}=useTranslation();</blockquote><p>there you go, you got them both.</p><p>OP3 is best for those who need changeLaguage() function at only one place</p><p>Just make a component which takes Text component as child or props and inside new component call the useTranslation() hook and get the t function. Pass the props or text children to t and that’s it.</p><p>ex:</p><p>TranslateText.js</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f120d3af2efa5474226f7525880f2f3b/href">https://medium.com/media/f120d3af2efa5474226f7525880f2f3b/href</a></iframe><p>inside Home.js</p><p>replace</p><blockquote><strong>&lt;Text&gt;{t(‘’)}&lt;/Text&gt;</strong></blockquote><p>with</p><blockquote><strong>&lt;TranslateText&gt;Hey Yo Im at home&lt;/TranslateText&gt;</strong></blockquote><p>That’s it no need to import hooks anywhere not even inside APP.js based on how you are using changeLanguage function</p><p>Next Post is more interesting because this is only for static texts.</p><p>We know texts keep on changing so is it a good idea to make a new build for each translation?</p><p>No! Right? So see you in the next post.</p><p>Added! Basically whole article is copy pasted, I am lazy, just checkout for some additional packages tho.</p><p><a href="https://medium.com/@raazthemystery273/how-to-use-i18next-react-i18next-with-server-side-support-in-react-native-bf9141e0f365">How to use i18next, react-i18next with server side support in React Native.</a></p><p>Credits to <a href="https://medium.com/u/1b40c2b94e6e">Iamnemexis</a> for helping me out with server side and many a tons of things almost everyday. Without him it would’ve been super difficult for me. <a href="https://medium.com/u/4be9fc5d326">Aditya Singh</a> for suggesting the i18n library as well as teaching React Native and Palash Rokade for all the support.</p><p>Thanks for reading and I really hope that it will help you.</p><p>About me, I work as a Full Stack Web Developer at a super cool startup called <a href="https://medium.com/u/d9c63d7b66">Morfsys</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f81ece184cd2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>