<?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: Syed Muhammad Sajjad</title>
    <description>The latest articles on DEV Community by Syed Muhammad Sajjad (@sajjad_ali_zaidi).</description>
    <link>https://dev.to/sajjad_ali_zaidi</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%2F680375%2F083dcc35-88d4-457a-a604-adbbdf615828.png</url>
      <title>DEV Community: Syed Muhammad Sajjad</title>
      <link>https://dev.to/sajjad_ali_zaidi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sajjad_ali_zaidi"/>
    <language>en</language>
    <item>
      <title>Create a Google Chrome Extension using React</title>
      <dc:creator>Syed Muhammad Sajjad</dc:creator>
      <pubDate>Thu, 12 Aug 2021 10:01:35 +0000</pubDate>
      <link>https://dev.to/sajjad_ali_zaidi/create-a-google-chrome-extension-using-react-ie1</link>
      <guid>https://dev.to/sajjad_ali_zaidi/create-a-google-chrome-extension-using-react-ie1</guid>
      <description>&lt;p&gt;You're probably here because you just realized that a chrome extension written in Vanilla JavaScript is not fulfilling your needs and you miss working in a React-like technology. So, without wasting any of your time, let's dive straight into the steps of creating a Google Chrome extension using REACT.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; In order to keep this post short and precise, the terms related to chrome extension are not explained in detail. Wherever felt necessary, links to appropriate resources are included so that you can further read about that topic. Also, brief explanation of 2 things is also given at the bottom of this post so that you can develop a better understanding of how this extension works.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;center&gt;Steps to Create a Google Chrome Extension using REACT&lt;/center&gt;
&lt;/h2&gt;



&lt;h1&gt;
  
  
  1. Create an empty folder
&lt;/h1&gt;

&lt;p&gt;Navigate to the place where you want to store your extension locally and create a new folder. You can name it whatever you want.&lt;/p&gt;

&lt;h1&gt;
  
  
  2. Initialize 'npm'
&lt;/h1&gt;

&lt;p&gt;Go inside that newly created folder, open a terminal and run the following:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(Keep pressing Enter 😅)&lt;br&gt;
Once done, we now need to install some &lt;a href="https://medium.com/@dylanavery720/npmmmm-1-dev-dependencies-dependencies-8931c2583b0c"&gt;dev dependencies&lt;/a&gt;.&lt;/p&gt;
&lt;h1&gt;
  
  
  3. Install required dev dependencies
&lt;/h1&gt;

&lt;p&gt;Run the following command. It will install all the space-separated packages as dev dependencies.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm i &lt;span class="nt"&gt;-D&lt;/span&gt; babel-core babel-plugin-transform-runtime babel-polyfill babel-preset-env clang-format parcel-bundler
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  4. Install react dependencies
&lt;/h1&gt;

&lt;p&gt;As we want to create a React App, we need to install 'react' and 'react-dom'&lt;br&gt;
So, run the following:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm i &lt;span class="nt"&gt;-s&lt;/span&gt; react react-dom
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We now have our required packages installed&lt;/p&gt;

&lt;h1&gt;
  
  
  5. Create a folder for source files
&lt;/h1&gt;

&lt;p&gt;Create a folder (let's call it 'src') to place all your files (before the parcel build process. Explanation about Parcel build is given at the bottom of this post).&lt;br&gt;
The files that you will create in this folder will be the ones that you interact with&lt;/p&gt;
&lt;h1&gt;
  
  
  6. Create 'manifest.json' file
&lt;/h1&gt;

&lt;p&gt;Create a file named 'manifest.json' inside the newly created 'src' folder. &lt;br&gt;
Add some boilerplate code for a simple chrome extension&lt;/p&gt;

&lt;p&gt;Code to get you started:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"My awesome extension"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"0.0.0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"description"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"This is an awesome extension"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"manifest_version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"browser_action"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"default_popup"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"popup.html"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  7. Create a React Component
&lt;/h1&gt;

&lt;p&gt;Create a file for a test React Component (let's call it 'Dummy').&lt;br&gt;
So, create a file 'Dummy.js' inside the 'src' folder.&lt;/p&gt;
&lt;h1&gt;
  
  
  8. Write code for the React Component
&lt;/h1&gt;

&lt;p&gt;You can use the following code to test your 'Dummy' component&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;React&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;react&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;Dummy&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;React&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Fragment&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;h1&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
        Hello from Dummy
      &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;h1&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;React&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Fragment&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="nx"&gt;Dummy&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  9. Create 'popup.html' file
&lt;/h1&gt;

&lt;p&gt;Create a 'popup.html' file (you can name it whatever you like) inside 'src' folder and add the boilerplate HTML code inside it. This is the front-end page of your extension when it is clicked. The name of this file should be the same in 'manifest.json' where 'default_popup' is mentioned.&lt;/p&gt;

&lt;h1&gt;
  
  
  10. Create 'popup.js' file
&lt;/h1&gt;

&lt;p&gt;Create a file 'popup.js' inside 'src' folder (again, you can name it anything you like).&lt;/p&gt;

&lt;h1&gt;
  
  
  11. Connect 'popup.js' with 'popup.html'
&lt;/h1&gt;

&lt;p&gt;Add a 'script' tag pointing to the file created in the previous step inside the 'popup.html' file. In this case, the name of the file is 'popup.js'. &lt;br&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  IMPORTANT NOTE:
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;DO NOT&lt;/strong&gt; give it a &lt;em&gt;'type'&lt;/em&gt; attribute of &lt;em&gt;'module'&lt;/em&gt;. This will lead to an error afterwards.&lt;/p&gt;

&lt;h1&gt;
  
  
  12. Import required packages in 'popup.js'
&lt;/h1&gt;

&lt;p&gt;Import the 'Dummy' component, 'react' and 'react-dom' packages inside 'popup.js'.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;Dummy&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./Dummy&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;React&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;react&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;ReactDOM&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;react-dom&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  13. Create a target 'div' tag to render our react code
&lt;/h1&gt;

&lt;p&gt;Create a &lt;code&gt;div&lt;/code&gt; tag inside 'popup.html' to render your React component. Give it an id &lt;code&gt;app&lt;/code&gt;. (Again, you can name it anything)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"app"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is where our 'Dummy' component is going to be rendered.&lt;/p&gt;

&lt;h1&gt;
  
  
  14. Write code to render 'Dummy' component
&lt;/h1&gt;

&lt;p&gt;Write the following line inside 'popup.js' to render the Dummy React component inside the 'div' tag with id 'app' in 'popup.html'.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="nx"&gt;ReactDOM&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;render&lt;/span&gt;&lt;span class="p"&gt;(&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Dummy&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;,&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;app&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  15. Create bash scripts
&lt;/h1&gt;

&lt;p&gt;Now, we move to write the bash scripts in the 'package.json' file. So that when we want to create extension files that are understood by the browser, we can simply run those scripts.&lt;br&gt;
Copy the following code into 'package.json' file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"scripts"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"copy"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"cp src/manifest.json dist/ &amp;amp;&amp;amp; cp src/popup.html dist/"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"build"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"parcel build src/popup.js -d dist/ -o popup --no-minify &amp;amp;&amp;amp; npm run copy"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Explanation of these scripts is at the end of this post&lt;/p&gt;

&lt;h1&gt;
  
  
  16. Build the extension code
&lt;/h1&gt;

&lt;p&gt;Now go to the terminal and run&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;yarn build
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You will see the 'dist' folder being created inside your extension directory/folder&lt;/p&gt;

&lt;h1&gt;
  
  
  17. Loading the extension files
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://webkul.com/blog/how-to-install-the-unpacked-extension-in-chrome/"&gt;Load&lt;/a&gt; this 'dist' folder in the extensions section on the browser and Enjoy 🙂&lt;/p&gt;

&lt;h1&gt;
  
  
  BONUS:
&lt;/h1&gt;

&lt;p&gt;I understand that this was a lot of information bombarded at you all at once, so if you want to gain a deeper insight into how this code works, you can continue reading this post.&lt;/p&gt;

&lt;h1&gt;
  
  
  1. Parcel Build Process
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://parceljs.org/"&gt;Parcel&lt;/a&gt; is a web application bundler that translates your code files in such a way that a browser can easily run it. And in the case of extension, we want to &lt;code&gt;import&lt;/code&gt; packages in our &lt;code&gt;react&lt;/code&gt; code and also &lt;code&gt;export&lt;/code&gt; them to be used in other components. &lt;br&gt;
But this is not directly possible in the case of extensions (at the time of writing this post). So, we need some helping tool, that helps us. And this is where parcel comes to our rescue.&lt;/p&gt;

&lt;p&gt;Parcel takes the target file (in this case 'popup.js') and translates that file. And in the file translation, it encounters the imported packages too. So, it will translate their code as well and continue to do so until all the required packages' code is translated and placed into a single file.&lt;br&gt;
Now, this single file can be easily read and understood by the browser. &lt;br&gt;
So, how do we create this single file?&lt;br&gt;
Well, this is explained below in the script explanation.&lt;/p&gt;
&lt;h1&gt;
  
  
  2. Scripts explanation
&lt;/h1&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"scripts"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"copy"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"cp src/manifest.json dist/ &amp;amp;&amp;amp; cp src/popup.html dist/"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"build"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"parcel build src/popup.js -d dist/ -o popup --no-minify &amp;amp;&amp;amp; npm run copy"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;These are the scripts that we will be using in our extension development. Let's understand how they work&lt;/p&gt;
&lt;h2&gt;
  
  
  Copy Script
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"copy"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"cp src/manifest.json dist/ &amp;amp;&amp;amp; cp src/popup.html dist/"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This script is written to allow the developer to copy (only copy, not the parcel build) 'manifest.json' and 'popup.html' files from our 'src' folder to the 'dist' folder. &lt;br&gt;
You can edit this script to include more files as well. &lt;br&gt;
Whenever you have files that do not contain any special task (like import, export, etc.) then you should directly copy it into the final extension code folder (in this case 'dist' folder).&lt;/p&gt;
&lt;h2&gt;
  
  
  Build Script
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"build"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"parcel build src/popup.js -d dist/ -o popup --no-minify &amp;amp;&amp;amp; npm run copy"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;If you understood the previous script explanation, then this will also be easy for you.&lt;br&gt;
This script tells the 'parcel' bundler to 'build' (or translate) our 'popup.js' file along with all the imported package code that is used inside 'popup.js' file and place it inside the 'dist' folder. And after the build process, run the 'copy' script as well. (You can take out this part if you don't want to run the 'copy' script every time you build your 'popup.js' file.)&lt;/p&gt;
&lt;h1&gt;
  
  
  How to use these scripts?
&lt;/h1&gt;

&lt;p&gt;Whenever you want to copy or build the extension code, go to the terminal and write one of the following&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;yarn copy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;yarn build
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also use 'npm' instead of 'yarn' for running these scripts.&lt;/p&gt;

&lt;p&gt;That's it for this post. Don't forget to like this post if it helped you in any way.&lt;/p&gt;

&lt;p&gt;Also, do share your thoughts in the comments. And, if you found any error, feel free to point it out in the comments.&lt;br&gt;
Thank you 🙂.&lt;/p&gt;

</description>
      <category>chrome</category>
      <category>react</category>
      <category>browser</category>
      <category>extension</category>
    </item>
  </channel>
</rss>
