<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7487206807828883532</id><updated>2026-01-01T08:59:39.231+05:30</updated><category term="JavaScript"/><category term="PHP"/><category term="HTML"/><category term="CSS"/><category term="angular"/><category term="React"/><category term="Interview"/><category term="MongoDB"/><category term="express"/><category term="Fullstack-1 Practicals"/><category term="Bootstrap"/><category term="COMPETITIVE PROGRAMMING"/><category term="Career"/><category term="Downloads"/><category term="Fullstack"/><category term="Fullstack - 2"/><category term="JQuery"/><title type='text'>Beta-Labs</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.beta-labs.in/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>146</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-7684339327494981838</id><published>2023-03-16T11:50:00.002+05:30</published><updated>2023-03-20T10:33:07.652+05:30</updated><title type='text'>What is Python?</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;b&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIHJYR20f0MUBvRUp0UqgjjyojnvIjAzA2YCqUKwwY_To60EhfPfh_gjQcjGG9Jx6ARl7-sr0u_Y1KeBodMSB8kcVFHm4vHaoSdH8bB3N_pWsiYRoevTzxPEUnxu96DiVrUkSAtPpEu8NOrGCNUg31KujgEq93VNnhIzxC5dCbabeYGkgqXrP_qJvzuw/s1200/python-1.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;python logo&quot; border=&quot;0&quot; data-original-height=&quot;400&quot; data-original-width=&quot;1200&quot; height=&quot;166&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIHJYR20f0MUBvRUp0UqgjjyojnvIjAzA2YCqUKwwY_To60EhfPfh_gjQcjGG9Jx6ARl7-sr0u_Y1KeBodMSB8kcVFHm4vHaoSdH8bB3N_pWsiYRoevTzxPEUnxu96DiVrUkSAtPpEu8NOrGCNUg31KujgEq93VNnhIzxC5dCbabeYGkgqXrP_qJvzuw/w496-h166/python-1.png&quot; title=&quot;Python logo&quot; width=&quot;496&quot; /&gt;&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Python is an open source and
high-level programming language designed by Guido van Rossum. &lt;b&gt;Released in
1991&lt;/b&gt;, this programming language’s design philosophy aims at code
readability, which is why it’s one of the easiest languages to learn.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;In addition,&amp;nbsp;&lt;span style=&quot;border: 1pt none windowtext; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Python&lt;/span&gt;&amp;nbsp;is an object-oriented, reflective, functional,
procedural, and structural language. All these approaches of Python help
programmers write logical and clear code for projects of all scales.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;As of now, there are three major
versions of Python, Python 3 being the latest. It also supports a wide range of
libraries to simplify writing the code.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Features&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Python’s features are:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;ul style=&quot;margin-top: 0in;&quot; type=&quot;disc&quot;&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0in; mso-list: l1 level1 lfo1; tab-stops: list .5in; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0in; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; padding: 0in;&quot;&gt;Open source and free:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;Python is open source,
     and you can download its code for free to use and modify it for your
     projects.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0in; mso-list: l1 level1 lfo1; tab-stops: list .5in; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0in; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; padding: 0in;&quot;&gt;Easy to learn:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;Python is becoming
     popular because it’s easy to learn compared to other languages. Its
     simpler syntax uses plain English with less complexity. Hence, it’s
     developer-friendly and easy to code.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0in; mso-list: l1 level1 lfo1; tab-stops: list .5in; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0in; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; padding: 0in;&quot;&gt;Extensive libraries:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;Python’s standard library
     is extensive with rich modules and functions that help you complete your
     projects faster instead of writing code from scratch. You can find
     reusable code for processes like image manipulation, unit testing, CGI,
     and more. Examples include Django, Flask, NumPy, and SciPy.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0in; mso-list: l1 level1 lfo1; tab-stops: list .5in; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0in; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; padding: 0in;&quot;&gt;Extensible:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;Python is highly
     extensible with different modules to extend the core functionality. For
     example, you can add a programmable interface to an existing application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0in; mso-list: l1 level1 lfo1; tab-stops: list .5in; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0in; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; padding: 0in;&quot;&gt;Object-oriented:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&lt;span style=&quot;border: 1pt none windowtext; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;Python uses
     object-oriented programming&lt;/span&gt;&amp;nbsp;concepts, such as objects,
     classes, inheritance, data encapsulation, and more.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0in; mso-list: l1 level1 lfo1; tab-stops: list .5in; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0in; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; padding: 0in;&quot;&gt;Interpreted and easy to
     debug:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;Python
     executes code linearly, like Java, C, and C++. This way, there’s no need
     for compilation, and debugging becomes easy.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0in; mso-list: l1 level1 lfo1; tab-stops: list .5in; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0in; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; padding: 0in;&quot;&gt;Dynamically-typed:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;Specifying a variable
     type such as char, int, double, etc., is not needed in Python as it’s
     decided during code run time rather than at the start. As a result, it
     makes programming simpler and reduces many lines of code.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0in; mso-list: l1 level1 lfo1; tab-stops: list .5in; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0in; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; padding: 0in;&quot;&gt;Portable:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;Python uses portable
     code. So, you can use the same code across different platforms like
     Windows, macOS, Unix, or Linux.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0in; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; padding: 0in;&quot;&gt;&lt;b&gt;&lt;span color=&quot;windowtext&quot; style=&quot;text-decoration: none; text-underline: none;&quot;&gt;Did you know that Python is the second most popular
programming language (right behind JavaScript)? &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span color=&quot;windowtext&quot; face=&quot;&amp;quot;Segoe UI Emoji&amp;quot;,sans-serif&quot; style=&quot;mso-bidi-font-family: &amp;quot;Segoe UI Emoji&amp;quot;; text-decoration: none; text-underline: none;&quot;&gt;🤓&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span color=&quot;windowtext&quot; style=&quot;text-decoration: none; text-underline: none;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 2; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 16pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Where Is Python Used?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Python is a versatile programming
language. You can use Python for a variety of purposes, including:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;ul style=&quot;margin-top: 0in;&quot; type=&quot;disc&quot;&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0in; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0in; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; padding: 0in;&quot;&gt;Web development:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;Due to its efficiency,
     speed, and other positive aspects, Python is excellent for&amp;nbsp;&lt;span style=&quot;border: 1pt none windowtext; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;web development&lt;/span&gt;. With the availability of extensive
     libraries like Django and Flask, the process becomes much more manageable.
     Some popular companies using it for this purpose include Instagram,
     Reddit, Uber, and Spotify.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0in; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0in; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; padding: 0in;&quot;&gt;Software development:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;Using Python, you can
     create software programs and applications running on your devices. Many
     Python packages, such as NumPy, Tkinter, SciPy, etc., simplify the
     software development procedures. You can also develop complex apps with
     scientific and numeric computing. A few biggies who use it for software
     development include Dropbox, PyChess, BitTorrent, Gramps, etc.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0in; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0in; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; padding: 0in;&quot;&gt;Machine learning and
     artificial intelligence:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;From search engines and social media to chatbots
     and virtual assistants, algorithms are everywhere and powered by machine
     learning and artificial intelligence. Python’s exclusive libraries, such
     as SciPy, Seaborn, TensorFlow, NumPy, Pandas, etc., serve these purposes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0in; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0in; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; padding: 0in;&quot;&gt;Data Science:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;Python is used
     extensively in Data Science. It has plenty of related libraries and
     frameworks such as PyBrain, Bottle, Flask, web3py, etc., useful in data
     science to visualize and analyze large volumes of data and other purposes.
     It also helps in&amp;nbsp;&lt;span style=&quot;border: 1pt none windowtext; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;web scraping&lt;/span&gt;, which
     has become quite essential these days for businesses.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0in; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0in; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; padding: 0in;&quot;&gt;Creating desktop GUIs:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;Due to Python’s modular
     structure, it works on various operating systems and lets you build
     desktop GUIs utilizing an efficient framework, module, or text processor,
     such as PyGUI, PyGtk, PyQt4, PyQt5, etc.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0in; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0in; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; padding: 0in;&quot;&gt;Game development:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;You can develop games
     using Python libraries like PySoy (a 3D game engine based on Python).
     Games developed using Python are Disney’s Toontown Online, Battlefield 2,
     Frets on Fire, etc.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 2; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 16pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;4 Benefits of Learning Python&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Learning Python has several
advantages for your career prospects. Let’s find out the answer to the
question, “Why learn Python”?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;1.Efficient in Development&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Python is not only easy to learn and
code, but it also accelerates the entire development process. It has a wide
range of frameworks, packages, libraries, and modules that don’t require you to
do everything from scratch.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;You can also utilize reusable code
to write the code faster with stability. It helps you automate standard
processes and save time to focus on the logic and other vital aspects of web
and software development.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;2. Extremely Versatile&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Python is a highly versatile
language, which is one of the reasons behind its popularity and high usability.
From small- to large-scale projects, Python works with the same efficiency.
Apart from the uses mentioned above, developers use it for deep learning, data
engineering, process automation, the Internet of Things (IoT), and more.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;That said, its versatility could be due
to the massive number of functions, methods,&amp;nbsp;&lt;span style=&quot;border: 1pt none windowtext; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;frameworks&lt;/span&gt;, and
libraries it supports. And Python’s readability, popularity, and usability have
further encouraged many more libraries, making the language more user-friendly.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;3. Demand for Python Developers&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;The demand for Python developers is
increasing in the market with its popularity and usage in emerging technologies.
It finds use in business services, insurance, aerospace, retail, banking,
finance, info-tech, consulting, healthcare, and hardware, just to name a few.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;The top companies using Python are
Google, NASA, YouTube, Quora, IBM, HP, Qualcomm, and Dropbox. And they also
hire Python developers frequently.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;In 2021, the&amp;nbsp;&lt;span style=&quot;border: 1pt none windowtext; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;average salary of Python developers&lt;/span&gt;&amp;nbsp;in the US is
$110,840 annually. So, learning Python can be rewarding for your career.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;4. Supportive Community&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Although there’s official Python
documentation available, sometimes you may get stuck, especially if you are a
beginner. At this time, a supportive community is something that can help you.
Fortunately, Python has a vast community of developers you can turn to in case
of doubts or questions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;You can find online forums such as
Stack Overflow,&amp;nbsp;&lt;span style=&quot;border: 1pt none windowtext; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;open source communities&lt;/span&gt;, and local
meet-ups to explore the language. In addition, there are lots of courses,
tutorials, websites, and other resources dedicated to Python (some of which
we’ll discuss in this article).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 10pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/7684339327494981838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/7684339327494981838'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2023/03/what-is-python.html' title='What is Python?'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIHJYR20f0MUBvRUp0UqgjjyojnvIjAzA2YCqUKwwY_To60EhfPfh_gjQcjGG9Jx6ARl7-sr0u_Y1KeBodMSB8kcVFHm4vHaoSdH8bB3N_pWsiYRoevTzxPEUnxu96DiVrUkSAtPpEu8NOrGCNUg31KujgEq93VNnhIzxC5dCbabeYGkgqXrP_qJvzuw/s72-w496-h166-c/python-1.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-6632881616653489709</id><published>2022-06-15T11:25:00.001+05:30</published><updated>2022-06-15T11:25:44.593+05:30</updated><title type='text'>Fullstack Web Development</title><content type='html'>&lt;iframe src=&quot;https://docs.google.com/presentation/d/e/2PACX-1vQW_eULin8Tb14ZfeG0c2W2Dgr2vpDAkEZiAQgBaCr2__XtiVriqRzhWgXzaOxAInghRlsK3DZNaqBk/embed?start=true&amp;loop=true&amp;delayms=60000&quot; frameborder=&quot;0&quot; width=&quot;750&quot; height=&quot;450&quot; allowfullscreen=&quot;true&quot; mozallowfullscreen=&quot;true&quot; webkitallowfullscreen=&quot;true&quot;&gt;&lt;/iframe&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/6632881616653489709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/6632881616653489709'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2022/06/fullstack-web-development.html' title='Fullstack Web Development'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-7965382639076088616</id><published>2021-10-26T09:51:00.005+05:30</published><updated>2022-07-23T19:35:44.097+05:30</updated><title type='text'>Introduction to Bootstrap</title><content type='html'>&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%;&quot;&gt;Bootstrap is a free and open-source collection of tools for creating
websites and web applications. It is the most popular HTML, CSS, and JavaScript
framework for developing responsive, mobile-first websites. It solves many
problems which we had once, one of which is the cross-browser compatibility
issue. Nowadays, the websites are perfect for all the browsers (IE, Firefox,
and Chrome) and for all sizes of screens (Desktop, Tablets, Phablets, and
Phones).&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjtKk8hRCGZnFxRefwwBheCNg96EBRhKIw942T5ZTP6lM4Mxe6-GO9aK79JQj2VQC2nL5uyu9gaXM1btIHWXHFIgkYGaxoNzJB2L-NtSMgpteGbNqzI-f3MYtcTJtYshw1ulc04nDln69dnNxvIEZvn0WCXv0qiekxzgY4-qZMCqmq5DOLFqfczsqS5oQ=s322&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;173&quot; data-original-width=&quot;322&quot; height=&quot;172&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjtKk8hRCGZnFxRefwwBheCNg96EBRhKIw942T5ZTP6lM4Mxe6-GO9aK79JQj2VQC2nL5uyu9gaXM1btIHWXHFIgkYGaxoNzJB2L-NtSMgpteGbNqzI-f3MYtcTJtYshw1ulc04nDln69dnNxvIEZvn0WCXv0qiekxzgY4-qZMCqmq5DOLFqfczsqS5oQ=s320&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 14pt; letter-spacing: 0.1pt; line-height: 150%; padding: 0cm;&quot;&gt;Reason to choose Bootstrap:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; letter-spacing: 0.1pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 35.45pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 35.45pt; mso-list: l0 level1 lfo1; tab-stops: list 0cm; text-align: justify; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt; letter-spacing: 0.1pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol; mso-fareast-language: EN-IN;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%;&quot;&gt;Faster and Easier Web-Development.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 35.45pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 35.45pt; mso-list: l0 level1 lfo1; tab-stops: list 0cm; text-align: justify; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt; letter-spacing: 0.1pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol; mso-fareast-language: EN-IN;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%;&quot;&gt;It creates Platform-independent web-pages.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 35.45pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 35.45pt; mso-list: l0 level1 lfo1; tab-stops: list 0cm; text-align: justify; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt; letter-spacing: 0.1pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol; mso-fareast-language: EN-IN;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%;&quot;&gt;It creates Responsive Web-pages.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 35.45pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 35.45pt; mso-list: l0 level1 lfo1; tab-stops: list 0cm; text-align: justify; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt; letter-spacing: 0.1pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol; mso-fareast-language: EN-IN;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%;&quot;&gt;It’s designed to be responsive to mobile devices too.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 35.45pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 35.45pt; mso-list: l0 level1 lfo1; tab-stops: list 0cm; text-align: justify; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt; letter-spacing: 0.1pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol; mso-fareast-language: EN-IN;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%;&quot;&gt;It’s Free! Available on www.getbootstrap.com&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 35.45pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 35.45pt; mso-list: l0 level1 lfo1; tab-stops: list 0cm; text-align: justify; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt; letter-spacing: 0.1pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol; mso-fareast-language: EN-IN;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%;&quot;&gt;You can quickly create multi-column layout with pre-defined classes.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 35.45pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 35.45pt; mso-list: l0 level1 lfo1; tab-stops: list 0cm; text-align: justify; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt; letter-spacing: 0.1pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol; mso-fareast-language: EN-IN;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%;&quot;&gt;You can quickly create different types of form layouts.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 35.45pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 35.45pt; mso-list: l0 level1 lfo1; tab-stops: list 0cm; text-align: justify; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt; letter-spacing: 0.1pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol; mso-fareast-language: EN-IN;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%;&quot;&gt;You can quickly create different variation of navigation bar.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 35.45pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 35.45pt; mso-list: l0 level1 lfo1; tab-stops: list 0cm; text-align: justify; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt; letter-spacing: 0.1pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol; mso-fareast-language: EN-IN;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%;&quot;&gt;You can easily create components like accordions, modals, etc. without
writing any JS code.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 35.45pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 35.45pt; mso-list: l0 level1 lfo1; tab-stops: list 0cm; text-align: justify; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt; letter-spacing: 0.1pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol; mso-fareast-language: EN-IN;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%;&quot;&gt;You can easily create dynamic tabs to manage large amount of content.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 35.45pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 35.45pt; mso-list: l0 level1 lfo1; tab-stops: list 0cm; text-align: justify; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt; letter-spacing: 0.1pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol; mso-fareast-language: EN-IN;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%;&quot;&gt;You can easily create tooltips and popovers to show hint text.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 35.45pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 35.45pt; mso-list: l0 level1 lfo1; tab-stops: list 0cm; text-align: justify; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt; letter-spacing: 0.1pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol; mso-fareast-language: EN-IN;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%;&quot;&gt;You can easily create carousel or image slider to showcase your content.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 35.45pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 35.45pt; mso-list: l0 level1 lfo1; tab-stops: list 0cm; text-align: justify; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Symbol; font-size: 10pt; letter-spacing: 0.1pt; line-height: 150%; text-indent: -18pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: transparent; font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%; text-indent: -18pt;&quot;&gt;You can quickly create different types of alert boxes.&lt;/span&gt;&lt;span style=&quot;background-color: transparent; text-align: left;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 54.0pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 54pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 14pt; letter-spacing: 0.1pt; line-height: 150%; padding: 0cm;&quot;&gt;History
of Bootstrap&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 14pt; letter-spacing: 0.1pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;background: white; line-height: 150%; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;letter-spacing: 0.1pt;&quot;&gt;Bootstrap was developed by Mark
Otto and Jacob Thornton at Twitter. It was released as an open source product
in August 2011 on GitHub.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;letter-spacing: 0.1pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 35.45pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 35.45pt; mso-list: l0 level1 lfo1; tab-stops: list 0cm; text-align: justify; text-indent: -18pt; vertical-align: baseline;&quot;&gt;



































&lt;/p&gt;&lt;p style=&quot;background: white; line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;letter-spacing: 0.1pt;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;In June 2014 Bootstrap was the
No.1 project on GitHub.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: center; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;b&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgU4A5-JWIxXC7JkzYefhq2ZIa7Ph9bMYOoZuHgVU7_hp_rP2zw7TLuqldZB-oKwpKVdq03UxkEIS2OjiC0KONxcHdL2Idr8E2Z06heYJVGXzWNOTdsBXl6EdqsdiXT1RrmoilRDHwOSY9PLT_Tyd4aG4VwdzdyyUjS8QmipS3HkGrInWMRb36N5ZzU_Q=s916&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;488&quot; data-original-width=&quot;916&quot; height=&quot;213&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgU4A5-JWIxXC7JkzYefhq2ZIa7Ph9bMYOoZuHgVU7_hp_rP2zw7TLuqldZB-oKwpKVdq03UxkEIS2OjiC0KONxcHdL2Idr8E2Z06heYJVGXzWNOTdsBXl6EdqsdiXT1RrmoilRDHwOSY9PLT_Tyd4aG4VwdzdyyUjS8QmipS3HkGrInWMRb36N5ZzU_Q=w400-h213&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 14pt; letter-spacing: 0.1pt; line-height: 150%; padding: 0cm;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 14pt; letter-spacing: 0.1pt; line-height: 150%; padding: 0cm;&quot;&gt;Advantages
of Using Bootstrap&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 14pt; letter-spacing: 0.1pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 11.25pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;If you have had some experience with any front-end
framework, you might be wondering what makes Bootstrap so special. Here are
some advantages why one should opt for Bootstrap framework:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-top: 0cm;&quot; type=&quot;disc&quot;&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-top: 5.25pt; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Save lots of time&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;— You can save lots of
     time and efforts using the Bootstrap predefined design templates and
     classes and concentrate on other development work.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-top: 5.25pt; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Responsive features&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;— Using Bootstrap you
     can easily create responsive websites that appear more appropriately on
     different devices and screen resolutions without any change in markup.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-top: 5.25pt; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Consistent design&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;— All Bootstrap
     components share the same design templates and styles through a central
     library, so the design and layout of your web pages will be consistent.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-top: 5.25pt; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Easy to use&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;— Bootstrap is very easy to use. Anybody
     with the basic working knowledge of HTML, CSS and JavaScript can start
     development with Bootstrap.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-top: 5.25pt; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Compatible with browsers&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;— Bootstrap is created
     with modern web browsers in mind and it is compatible with all modern
     browsers such as Chrome, Firefox, Safari, Internet Explorer, etc.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-top: 5.25pt; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Open Source&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;— And the best part is, it is completely
     free to download and use.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 7.5pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%;&quot;&gt;Websites that were built with a lot of CSS and JavaScript can now be
built with a few lines of code using Bootstrap. Bootstrap comprises of mainly
three components:&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 54.0pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 54pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt; letter-spacing: 0.1pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol; mso-fareast-language: EN-IN;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%;&quot;&gt;CSS&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 54.0pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 54pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt; letter-spacing: 0.1pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol; mso-fareast-language: EN-IN;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%;&quot;&gt;Fonts&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 54.0pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 54pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt; letter-spacing: 0.1pt; line-height: 150%; text-indent: -18pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: 0.1pt; line-height: 150%; text-indent: -18pt;&quot;&gt;Javascript&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background: white; line-height: 150%; text-align: justify;&quot;&gt;&lt;b style=&quot;background-color: transparent;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 14pt; letter-spacing: -0.1pt; line-height: 28px; mso-bidi-font-size: 12.0pt; mso-border-alt: none windowtext 0in; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; padding: 0in;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;background: white; line-height: 150%; text-align: justify;&quot;&gt;&lt;b style=&quot;background-color: transparent;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 14pt; letter-spacing: -0.1pt; line-height: 28px; mso-bidi-font-size: 12.0pt; mso-border-alt: none windowtext 0in; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; padding: 0in;&quot;&gt;How to use Bootstrap 4 in a Webpage&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;blockquote style=&quot;border: none; margin: 0px 0px 0px 40px; padding: 0px;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 24px; margin-bottom: 0in; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; letter-spacing: -0.1pt; line-height: 24px; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;There are two ways to include Bootstrap in the website.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 24px; margin-bottom: 0in; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;background: white; line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;letter-spacing: 0.1pt;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 24px; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Include Bootstrap from CDN link.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 24px; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Download Bootstrap from getbootstrap.com and use it.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;background: white; line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;letter-spacing: 0.1pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 35.45pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 35.45pt; mso-list: l0 level1 lfo1; tab-stops: list 0cm; text-align: justify; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; text-align: left;&quot;&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/7965382639076088616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/7965382639076088616'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2021/10/introduction-to-bootstrap.html' title='Introduction to Bootstrap'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEjtKk8hRCGZnFxRefwwBheCNg96EBRhKIw942T5ZTP6lM4Mxe6-GO9aK79JQj2VQC2nL5uyu9gaXM1btIHWXHFIgkYGaxoNzJB2L-NtSMgpteGbNqzI-f3MYtcTJtYshw1ulc04nDln69dnNxvIEZvn0WCXv0qiekxzgY4-qZMCqmq5DOLFqfczsqS5oQ=s72-c" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-2391605947416722583</id><published>2021-10-25T12:43:00.000+05:30</published><updated>2021-11-11T06:48:52.397+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Bootstrap"/><title type='text'>Bootstrap Grid System</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; margin-bottom: 12pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Bootstrap grid system provides the quick and convenient way
to create responsive website layouts. The latest Bootstrap 4 version introduces
the new mobile-first&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;flexbox&amp;nbsp;grid
system&lt;/b&gt;&amp;nbsp;that appropriately scales up to 12 columns as the device
or viewport size increases.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; margin-bottom: 12pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%; mso-bidi-font-size: 12.0pt;&quot;&gt;The Bootstrap Grid System Has 3 Main Parts: CRC&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;When
working with the Bootstrap 12 column grid you have to keep in mind the order of
elements and that there are always three parts: a&amp;nbsp;&lt;b&gt;C&lt;/b&gt;ontainer,
a&amp;nbsp;&lt;b&gt;R&lt;/b&gt;ow, and any number of&amp;nbsp;&lt;b&gt;C&lt;/b&gt;olumns. CRC.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;strong&gt;&lt;span face=&quot;&amp;quot;Helvetica&amp;quot;,sans-serif&quot; style=&quot;color: #515867; font-size: 13.5pt; line-height: 107%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi;&quot;&gt;For example:&lt;/span&gt;&lt;/strong&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;code style=&quot;border-radius: 4px; box-sizing: border-box;&quot;&gt;&lt;span style=&quot;background: rgb(249, 242, 244); color: #c7254e; font-family: Consolas; font-size: 12pt; line-height: 107%; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;&quot;&gt;table
&amp;gt; tr &amp;gt; td&lt;/span&gt;&lt;/code&gt;&amp;nbsp;is like&amp;nbsp;&lt;code style=&quot;border-radius: 4px; box-sizing: border-box;&quot;&gt;&lt;span style=&quot;background: rgb(249, 242, 244); color: #c7254e; font-family: Consolas; font-size: 12pt; line-height: 107%; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;&quot;&gt;.container &amp;gt; .row &amp;gt; .col-sm-6&lt;/span&gt;&lt;/code&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;div style=&quot;border-bottom: solid #777777 1.0pt; border: none; mso-border-bottom-alt: solid #777777 .75pt; mso-element: para-border-div; padding: 0in 0in 4pt;&quot;&gt;

&lt;h3 style=&quot;border: none; line-height: 150%; margin-top: 24pt; mso-border-bottom-alt: solid #777777 .75pt; mso-padding-alt: 0in 0in 4.0pt 0in; padding: 0in; text-align: justify;&quot;&gt;&lt;strong&gt;&lt;span color=&quot;windowtext&quot; face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-weight: normal;&quot;&gt;Container&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;span color=&quot;windowtext&quot; face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;&amp;nbsp;–&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;code style=&quot;border-radius: 4px; box-sizing: border-box;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(249, 242, 244); color: #c7254e; line-height: 150%; mso-ansi-font-size: 12.0pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-theme-font: major-fareast;&quot;&gt;.container&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #515867;&quot;&gt;&amp;nbsp;or&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;code style=&quot;border-radius: 4px; box-sizing: border-box;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(249, 242, 244); color: #c7254e; line-height: 150%; mso-ansi-font-size: 12.0pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-theme-font: major-fareast;&quot;&gt;.container-fluid&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #515867;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;

&lt;/div&gt;&lt;p style=&quot;box-sizing: border-box; line-height: 150%; margin: 0in 0in 0.0001pt;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;This is the
parent container that determines if the columns should be full-width or not.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;border-bottom: solid #777777 1.0pt; border: none; mso-border-bottom-alt: solid #777777 .75pt; mso-element: para-border-div; padding: 0in 0in 4pt;&quot;&gt;

&lt;h3 style=&quot;border: none; box-sizing: border-box; line-height: 150%; margin-top: 24pt; padding: 0in;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;&lt;span color=&quot;windowtext&quot; face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-weight: normal;&quot;&gt;Row&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;span color=&quot;windowtext&quot; face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;&amp;nbsp;–&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;code style=&quot;border-radius: 4px; box-sizing: border-box;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(249, 242, 244); color: #c7254e; line-height: 150%; mso-ansi-font-size: 12.0pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-theme-font: major-fareast;&quot;&gt;.row&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #515867;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;

&lt;/div&gt;&lt;p style=&quot;box-sizing: border-box; line-height: 150%; margin: 0in 0in 0.0001pt;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;A horizontal
wrapping container for the series of columns it contains. It essentially clears
the floated columns&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;border-bottom: solid #777777 1.0pt; border: none; mso-border-bottom-alt: solid #777777 .75pt; mso-element: para-border-div; padding: 0in 0in 4pt;&quot;&gt;

&lt;h3 style=&quot;border: none; box-sizing: border-box; line-height: 150%; margin-top: 24pt; padding: 0in;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;&lt;span color=&quot;windowtext&quot; face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-weight: normal;&quot;&gt;Column&lt;/span&gt;&lt;/strong&gt;&lt;b&gt;&lt;span color=&quot;windowtext&quot; face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;&amp;nbsp;–&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;code style=&quot;border-radius: 4px; box-sizing: border-box;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(249, 242, 244); color: #c7254e; line-height: 150%; mso-ansi-font-size: 12.0pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-theme-font: major-fareast;&quot;&gt;.col-*-*&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #515867;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;

&lt;/div&gt;&lt;p style=&quot;box-sizing: border-box; line-height: 150%; margin: 0in 0in 0.0001pt;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;A column is a
vertical division similar to a table cell. This is where your content goes and
has built-in margin to the left and right to prevent text and images from
touching each other. The default grid uses floating divs to achieve the
horizontal columns.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; margin-bottom: 12pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%; mso-bidi-font-size: 12.0pt;&quot;&gt;Bootstrap 5&amp;nbsp;Breakpoints&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 150%; margin-bottom: 9.0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; margin: 0in 0in 9pt; text-align: justify; vertical-align: baseline;&quot;&gt;



























&lt;/p&gt;&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Columns also have grid tiers which
tell the columns how they should look at different breakpoints. In the example
below I used&amp;nbsp;.col-sm-6&amp;nbsp;which essentially says, “When the browser
window is 576px or higher make this column span 6 of the 12 columns. For
anything below 576px make it full width.” So when you declare a grid tier you
are saying make it this size for the&amp;nbsp;specified tier and up.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2C3Q24LraP0WVatf7SlM_7zQDQBcI5tZ_3IfUuK8Zfxn3YomRimW_L0OAJeFHfrVmrDriUv57K_YgVorjPqTaJBbqJZVjAW9LR64IJCpqn-OIC_Me1oxQ-EcO61UpyEzUb6rQKdlzRsgk/s961/Screen-Shot-2017-06-12-at-4.17.31-AM.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;944&quot; data-original-width=&quot;961&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2C3Q24LraP0WVatf7SlM_7zQDQBcI5tZ_3IfUuK8Zfxn3YomRimW_L0OAJeFHfrVmrDriUv57K_YgVorjPqTaJBbqJZVjAW9LR64IJCpqn-OIC_Me1oxQ-EcO61UpyEzUb6rQKdlzRsgk/s320/Screen-Shot-2017-06-12-at-4.17.31-AM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;

&lt;p style=&quot;-webkit-text-stroke-width: 0px; font-stretch: inherit; font-variant-caps: normal; font-variant-east-asian: inherit; font-variant-ligatures: normal; font-variant-numeric: inherit; line-height: inherit; margin: 0in 0in 9pt; orphans: 2; text-align: justify; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; vertical-align: baseline; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141;&quot;&gt;Bootstrap 4
includes predefined grid classes for quickly making grid layouts for different
types of devices like cell phones, tablets, laptops and desktops, etc. For
example, you can use the&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border-radius: 4px;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(241, 241, 241); color: #333333; line-height: 150%; mso-ansi-font-size: 12.0pt; mso-bidi-font-size: 12.0pt;&quot;&gt;.col-*&lt;/span&gt;&lt;/code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141;&quot;&gt;&amp;nbsp;classes to create
grid columns for extra small devices mobile phones in portrait mode, similarly
you can use the&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border-radius: 4px;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(241, 241, 241); color: #333333; line-height: 150%; mso-ansi-font-size: 12.0pt; mso-bidi-font-size: 12.0pt;&quot;&gt;.col-sm-*&lt;/span&gt;&lt;/code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141;&quot;&gt;&amp;nbsp;classes to create
grid columns for small screen devices like mobile phone in landscape mode, the&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border-radius: 4px;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(241, 241, 241); color: #333333; line-height: 150%; mso-ansi-font-size: 12.0pt; mso-bidi-font-size: 12.0pt;&quot;&gt;.col-md-*&lt;/span&gt;&lt;/code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141;&quot;&gt;&amp;nbsp;classes for medium screen devices like tablets, the&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border-radius: 4px;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(241, 241, 241); color: #333333; line-height: 150%; mso-ansi-font-size: 12.0pt; mso-bidi-font-size: 12.0pt;&quot;&gt;.col-lg-*&lt;/span&gt;&lt;/code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141;&quot;&gt;&amp;nbsp;classes for large devices like desktops, and the&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border-radius: 4px;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(241, 241, 241); color: #333333; line-height: 150%; mso-ansi-font-size: 12.0pt; mso-bidi-font-size: 12.0pt;&quot;&gt;.col-xl-*&lt;/span&gt;&lt;/code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141;&quot;&gt;&amp;nbsp;classes for extra large desktop screens.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;space&quot; style=&quot;-webkit-text-stroke-width: 0px; font-stretch: inherit; font-variant-caps: normal; font-variant-east-asian: inherit; font-variant-ligatures: normal; font-variant-numeric: inherit; line-height: inherit; margin-top: 0in; orphans: 2; text-align: justify; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; vertical-align: baseline; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141;&quot;&gt;The
following table summarizes some of the key features of the new grid system.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 9pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS-kkad5s9m9MWLpIzKdgIqTkAyd5LrhXHd5iFQGrpSqfXPG6uQdddiAMQbF_2ryuO7f-EiiLEa_b2eK-x3IIz-F6ZGgBnJEy5y0ZFvNYfC_HcCmw-eybAQPDttvLNgAHQ7zpC5yRsdgAt/s1398/system.JPG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;732&quot; data-original-width=&quot;1398&quot; height=&quot;301&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS-kkad5s9m9MWLpIzKdgIqTkAyd5LrhXHd5iFQGrpSqfXPG6uQdddiAMQbF_2ryuO7f-EiiLEa_b2eK-x3IIz-F6ZGgBnJEy5y0ZFvNYfC_HcCmw-eybAQPDttvLNgAHQ7zpC5yRsdgAt/w573-h301/system.JPG&quot; width=&quot;573&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 9pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Above table demonstrates one important thing, applying any&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(241, 241, 241); color: #333333; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;.col-sm-*&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;class to an
element will not only affect its styling on small devices, but also on medium,
large and extra large devices having screen width greater than or equal to
540px, if a&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(241, 241, 241); color: #333333; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;.col-md-*&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(241, 241, 241); color: #333333; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;.col-lg-*&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;or&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(241, 241, 241); color: #333333; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;.col-xl-*&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;class is not present. Similarly, the&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(241, 241, 241); color: #333333; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;.col-md-*&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;class will not
only affect the styling of elements on medium devices, but also on large and
extra large devices if a&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(241, 241, 241); color: #333333; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;.col-lg-*&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;or&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(241, 241, 241); color: #333333; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;.col-xl-&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;class is not present.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Now the question arises how to create rows and columns using
this 12 column responsive grid system. The answer is pretty simple, at first
create a container that acts as a wrapper for your rows and columns using
the&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(241, 241, 241); color: #333333; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;.container&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;class, after that create rows inside the container using
the&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(241, 241, 241); color: #333333; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;.row&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;class, and to create columns inside any row you can use
the&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(241, 241, 241); color: #333333; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;.col-*&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(241, 241, 241); color: #333333; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;.col-sm-*&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(241, 241, 241); color: #333333; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;.col-md-*&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(241, 241, 241); color: #333333; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;.col-lg-*&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(241, 241, 241); color: #333333; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;.col-xl-*&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #414141; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;classes. The columns are actual content area where we will
place our contents. Let&#39;s put all these things into real action. Let&#39;s see how
it actually works:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 7.5pt; margin-left: 0in; margin-right: 0in; margin-top: 15.0pt; margin: 15pt 0in 7.5pt; mso-outline-level: 2; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/2391605947416722583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/2391605947416722583'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2020/11/bootstrap-grid-system.html' title='Bootstrap Grid System'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2C3Q24LraP0WVatf7SlM_7zQDQBcI5tZ_3IfUuK8Zfxn3YomRimW_L0OAJeFHfrVmrDriUv57K_YgVorjPqTaJBbqJZVjAW9LR64IJCpqn-OIC_Me1oxQ-EcO61UpyEzUb6rQKdlzRsgk/s72-c/Screen-Shot-2017-06-12-at-4.17.31-AM.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-3467121642785527293</id><published>2021-10-25T12:33:00.000+05:30</published><updated>2021-11-11T06:50:11.343+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Bootstrap"/><title type='text'>Bootstrap Containers</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;letter-spacing: -0.1pt;&quot;&gt;In bootstrap,&amp;nbsp;&lt;strong&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;container&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;is
used to set the content’s margin. It contains row elements and the row elements
are container of columns. This is known as grid system.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;line-height: 150%; margin-bottom: 7.5pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; margin: 0in 0in 7.5pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;letter-spacing: -0.1pt;&quot;&gt;There are two
container classes in bootstrap:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0in; margin-left: 27.0pt; margin-right: 0in; margin-top: 0in; margin: 0in 0in 0in 27pt; mso-list: l1 level1 lfo1; tab-stops: list .5in; text-align: justify; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: Arial;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;1.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;strong&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;.container&lt;/span&gt;&lt;/strong&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0in; margin-left: 27.0pt; margin-right: 0in; margin-top: 0in; margin: 0in 0in 0in 27pt; mso-list: l1 level1 lfo1; tab-stops: list .5in; text-align: justify; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: Arial;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;2.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;strong&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;.container-fluid&lt;/span&gt;&lt;/strong&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;line-height: 150%; margin-bottom: 7.5pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; margin: 0in 0in 7.5pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;letter-spacing: -0.1pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;line-height: 150%; margin-bottom: 7.5pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; margin: 0in 0in 7.5pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;letter-spacing: -0.1pt;&quot;&gt;Let’s look at each
of the above two class in details with examples:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0in; margin-left: 27.0pt; margin-right: 0in; margin-top: 0in; margin: 0in 0in 0in 27pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-align: justify; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;strong&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;.container&lt;/span&gt;&lt;/strong&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;: The
.container class provides a responsive fixed width container.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;line-height: 150%; margin-bottom: 7.5pt; margin-left: 27.0pt; margin-right: 0in; margin-top: 0in; margin: 0in 0in 7.5pt 27pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;letter-spacing: -0.1pt;&quot;&gt;In the below
example, the div with class “container” will have a fixed left and right margin
and will not take the complete width of it’s parent or the viewport.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;margin-bottom: 0in; margin-left: 27.0pt; margin-right: 0in; margin-top: 0in; margin: 0in 0in 0in 27pt; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;var(--font-din)&amp;quot;,serif&quot; style=&quot;letter-spacing: -0.1pt; mso-bidi-font-family: Arial;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-position-x: 0px; background-position-y: 0px; background-position: 0px 0px; border-collapse: collapse; border-radius: 0px; border-spacing: 0px; box-shadow: none; box-sizing: content-box; color: rgba(0, 0, 0, 0.84); float: none; inset: auto; margin-left: 27pt; min-height: auto; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; outline: 0px; overflow: hidden; width: 1296px;&quot;&gt;
 &lt;/table&gt;&lt;p&gt;&lt;/p&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;lt;!--&amp;nbsp;Bootstrap&amp;nbsp;container&amp;nbsp;class&amp;nbsp;--&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Bootstrap&amp;nbsp;Container&amp;nbsp;Example&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;&amp;lt;!--&amp;nbsp;Add&amp;nbsp;Bootstrap&amp;nbsp;Links&amp;nbsp;--&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;link&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;rel&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;&quot;stylesheet&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;bootstrap.min.css&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;script&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;&quot;https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;  &amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;script&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;  &amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;&amp;lt;!--&amp;nbsp;Since&amp;nbsp;we&amp;nbsp;are&amp;nbsp;using&amp;nbsp;the&amp;nbsp;class&amp;nbsp;container,&amp;nbsp;the&amp;nbsp;below&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;div&amp;nbsp;will&amp;nbsp;not&amp;nbsp;take&amp;nbsp;complete&amp;nbsp;width&amp;nbsp;of&amp;nbsp;it&#39;s&amp;nbsp;parent.&amp;nbsp;--&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;&quot;container&amp;nbsp;bg-success&amp;nbsp;text-light&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Beta-Labs&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;Complete&amp;nbsp;Tutorial&amp;nbsp;for&amp;nbsp;Web&amp;nbsp;Developers&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlQEuDMjsXtFknUidOcjNrmYEio0cpydcsu_2v82PJXOCSYUmVdA4Wex6E9aVgw8skFuelPNiz4YghtND-OgZramKb3k_4Q_kYSiaac8PmBOuya0kn-BiSjVeSQTACAI90Z5EYNpAAemDa/s1401/container.JPG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;489&quot; data-original-width=&quot;1401&quot; height=&quot;206&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlQEuDMjsXtFknUidOcjNrmYEio0cpydcsu_2v82PJXOCSYUmVdA4Wex6E9aVgw8skFuelPNiz4YghtND-OgZramKb3k_4Q_kYSiaac8PmBOuya0kn-BiSjVeSQTACAI90Z5EYNpAAemDa/w562-h206/container.JPG&quot; width=&quot;562&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Symbol; font-size: 10pt; line-height: 150%; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;strong style=&quot;background-color: transparent; font-size: 14px; text-indent: -0.25in;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0in; padding: 0in;&quot;&gt;.container-fluid&lt;/span&gt;&lt;/strong&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: transparent; font-size: 12pt; line-height: 150%; text-indent: -0.25in;&quot;&gt;: &lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: transparent; line-height: 150%; text-indent: -0.25in;&quot;&gt;The .container-fluid class provides a full-width container which spans the &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: transparent; line-height: 150%; text-indent: -0.25in;&quot;&gt;entire width of the viewport.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;

&lt;/p&gt;&lt;p style=&quot;line-height: 150%; margin-bottom: 7.5pt; margin-left: 27.0pt; margin-right: 0in; margin-top: 0in; margin: 0in 0in 7.5pt 27pt; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;letter-spacing: -0.1pt;&quot;&gt;In the below example, the div with class
“container-fluid” will take-up the complete width of the viewport and will
expand or shrink when ever the viewport is resized.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;lt;!--&amp;nbsp;Bootstrap&amp;nbsp;container-fluid&amp;nbsp;class&amp;nbsp;--&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Bootstrap&amp;nbsp;Container&amp;nbsp;Example&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;&amp;lt;!--&amp;nbsp;Add&amp;nbsp;Bootstrap&amp;nbsp;Links&amp;nbsp;--&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;link&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;rel&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;&quot;stylesheet&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;css/bootstrap.min.css&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;script&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;&quot;https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;script&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;&amp;lt;!--&amp;nbsp;Since&amp;nbsp;we&amp;nbsp;are&amp;nbsp;using&amp;nbsp;the&amp;nbsp;class&amp;nbsp;container,&amp;nbsp;the&amp;nbsp;below&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;div&amp;nbsp;will&amp;nbsp;not&amp;nbsp;take&amp;nbsp;complete&amp;nbsp;width&amp;nbsp;of&amp;nbsp;it&#39;s&amp;nbsp;parent.&amp;nbsp;--&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;&quot;container-fluid&amp;nbsp;bg-success&amp;nbsp;text-light&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Beta-Labs&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;Complete&amp;nbsp;Tutorial&amp;nbsp;for&amp;nbsp;Web&amp;nbsp;Developers&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-position-x: 0px; background-position-y: 0px; background-position: 0px 0px; border-collapse: collapse; border-radius: 0px; border-spacing: 0px; box-shadow: none; box-sizing: content-box; color: rgba(0, 0, 0, 0.84); float: none; inset: auto; margin-left: 27pt; min-height: auto; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; outline: 0px; overflow: hidden; width: 1296px;&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;background-position-x: 0px; background-position-y: 0px; background-position: 0px 0px; border-radius: 0px; box-shadow: none; box-sizing: content-box; float: none; inset: auto; min-height: auto; mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes; outline: 0px; overflow: hidden;&quot;&gt;
  &lt;td style=&quot;background-position-x: 0px; background-position-y: 0px; background-position: 0px 0px; border-radius: 0px; box-shadow: none; box-sizing: content-box; float: none; inset: auto; min-height: auto; outline: 0px; overflow: hidden; padding: 0in; width: 9in;&quot; width=&quot;1296&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1QW8vNMWsMbUy0wgijZzjrT4MmVjcWTOlIcw4-k1-QsjK5GlU2B0tKfNFPgpVPTeRGoD4iXi1FVZrjS96R7y8f_PfiJ4DuRhkI0lTCZwYL1SdPzPmtZFtaB97UtH8n_jylKydHMe_Ff-p/s1406/container1.JPG&quot; style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; margin-left: 1em; margin-right: 1em; text-align: center; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;522&quot; data-original-width=&quot;1406&quot; height=&quot;215&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1QW8vNMWsMbUy0wgijZzjrT4MmVjcWTOlIcw4-k1-QsjK5GlU2B0tKfNFPgpVPTeRGoD4iXi1FVZrjS96R7y8f_PfiJ4DuRhkI0lTCZwYL1SdPzPmtZFtaB97UtH8n_jylKydHMe_Ff-p/w578-h215/container1.JPG&quot; width=&quot;578&quot; /&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;/p&gt;&lt;h2 style=&quot;line-height: 150%; margin-bottom: 7.5pt; margin-left: 0in; margin-right: 0in; margin-top: 15.0pt; margin: 15pt 0in 7.5pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;var(--font-din)&amp;quot;,serif&quot; style=&quot;letter-spacing: -0.1pt; mso-bidi-font-family: Arial;&quot;&gt;
&lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt;&lt;br style=&quot;mso-special-character: line-break;&quot; /&gt;
&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #262626; font-size: 16pt; line-height: 150%; mso-bidi-font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/3467121642785527293'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/3467121642785527293'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2020/11/bootstrap-containers.html' title='Bootstrap Containers'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlQEuDMjsXtFknUidOcjNrmYEio0cpydcsu_2v82PJXOCSYUmVdA4Wex6E9aVgw8skFuelPNiz4YghtND-OgZramKb3k_4Q_kYSiaac8PmBOuya0kn-BiSjVeSQTACAI90Z5EYNpAAemDa/s72-w562-h206-c/container.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-7682841083004275505</id><published>2021-10-21T12:28:00.009+05:30</published><updated>2022-07-23T19:36:35.196+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JQuery"/><title type='text'>Introduction to JQuery</title><content type='html'>&lt;p style=&quot;background: white; line-height: 150%; margin-bottom: 16.5pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 16.5pt; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;HTML,
CSS, and JavaScript are the three fundamental languages of the web. We
structure our websites with HTML, style them with CSS, and add interactive
functionality with JavaScript. In fact, most animations and any action that
happens as a result of a user clicking, hovering, or scrolling are constructed
with JavaScript.&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;h5 style=&quot;background: white; line-height: 150%; margin-top: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;jQuery&amp;nbsp;is
the “Write Less, Do More” JavaScript library. It is not a programming language,
but rather a tool used to make writing common JavaScript tasks more concise.
jQuery has the added benefit of being&amp;nbsp;cross-browser compatible, meaning
you can be certain the output of your code will render as intended in any
modern &lt;/span&gt;&lt;span color=&quot;windowtext&quot; face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-color-alt: windowtext;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h5&gt;

&lt;h5 style=&quot;background: white; line-height: 150%; margin-top: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;strong&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; color: #c00000; font-size: 14pt; line-height: 150%; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;What is jQuery?&lt;/span&gt;&lt;/strong&gt;&lt;/h5&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;/p&gt;&lt;ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-style: inherit; font-weight: inherit; outline: 0px;&quot;&gt;jQuery is a fast, small, lightweight, and feature-rich JavaScript
library. It is designed to simplify the client-side scripting of HTML. It makes
things like DOM traversal and manipulation, event handling, animation, and Ajax
much simpler. With a combination of versatility and extensibility, jQuery has
changed the way that millions of people write JavaScript. As of May 2019,
jQuery was used by 73% of the 10 million most popular websites.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-style: inherit; outline: 0px;&quot;&gt;&lt;span style=&quot;font-weight: inherit;&quot;&gt;jQuery was created by &lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&lt;b&gt;John Resig &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: inherit;&quot;&gt;in 2006 with the motto “Write
less, do more”.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-style: inherit; font-weight: inherit; outline: 0px;&quot;&gt;The main purpose of jQuery is to make JavaScript faster, easier,
more concise, more effective, and more attractive. jQuery helps the developers
to make websites more dynamic and interactive with jQuery.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-style: inherit; font-weight: inherit; outline: 0px;&quot;&gt;jQuery takes a lot of common functionalities of Vanilla
JavaScript which required many lines of code and wraps them into pre-defined
and built-in methods which you can call in a single line of code in jQuery.&lt;/span&gt;&lt;/span&gt;&lt;strong style=&quot;font-size: 1.2rem; font-style: inherit;&quot;&gt;&lt;span color=&quot;windowtext&quot; face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; font-weight: normal; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-color-alt: windowtext; padding: 0cm;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;h5 style=&quot;background: white; line-height: 150%; margin-bottom: 12.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 12pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;strong&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; color: #c00000; font-size: 14pt; line-height: 150%; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Why jQuery?&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/strong&gt;&lt;/h5&gt;

&lt;p style=&quot;background: white; line-height: 150%; margin: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; padding: 0cm;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;jQuery Syntax is designed to make it easier to
achieve a wide collection of functionalities. Let us now see one by one, why we
should learn jQuery and use it over vanilla JavaScript.&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;/p&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; font-style: inherit; outline: 0px;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-style: inherit; font-weight: inherit; outline: 0px;&quot;&gt;LIGHT-WEIGHT:&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;&amp;nbsp;jQuery
is a very lightweight library of JavaScript. Its minified file is just about 19
kB.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; font-style: inherit; outline: 0px;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-style: inherit; font-weight: inherit; outline: 0px;&quot;&gt;SHORT SELECTORS:&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;&amp;nbsp;jQuery
provides us a shorter syntax to select any element of our DOM (Document Object
Model). Thus, using jQuery, we can easily target any of the DOM elements&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; font-style: inherit; outline: 0px;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-style: inherit; font-weight: inherit; outline: 0px;&quot;&gt;DOM MANIPULATION:&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;&amp;nbsp;jQuery
makes the DOM manipulating really with short and simple syntax by its selector
engine named Sizzle.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; font-style: inherit; outline: 0px;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-style: inherit; font-weight: inherit; outline: 0px;&quot;&gt;DOM TRAVERSING:&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;&amp;nbsp;jQuery
provides us built-in and predefined keywords to traverse through the DOM, which
is really hassle-free for the developers.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; font-style: inherit; outline: 0px;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-style: inherit; font-weight: inherit; outline: 0px;&quot;&gt;EVENT HANDLING:&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;&amp;nbsp;jQuery
provides us an extremely easy and elegant way to Handle any keyboard or mouse
event in our web application such as clicking on a button or pressing the enter
key or firing the blur event.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; font-style: inherit; outline: 0px;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-style: inherit; font-weight: inherit; outline: 0px;&quot;&gt;AJAX SUPPORT:&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;&amp;nbsp;jQuery
helps us to develop dynamic and interactive web applications with the latest
AJAX technology. AJAX calling with jQuery is much easier than vanilla
JavaScript.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; font-style: inherit; outline: 0px;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-style: inherit; font-weight: inherit; outline: 0px;&quot;&gt;ANIMATION:&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;&amp;nbsp;jQuery
has a sea of built-in animation effects that can provide your website an
elegant look.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; font-style: inherit; outline: 0px;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-style: inherit; font-weight: inherit; outline: 0px;&quot;&gt;PLUG-INS:&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;&amp;nbsp;jQuery
provides a lot of plug-ins to use in our web applications to make high-level
effects, advanced and themeable widgets&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; font-style: inherit; outline: 0px;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-style: inherit; font-weight: inherit; outline: 0px;&quot;&gt;CROSS-BROWSER SUPPORT:&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;&amp;nbsp;JQuery has cross-browser support, works efficiently in IE
6.0+, FF 2.0+, Safari 3.0+, Chrome, and Opera 9.0+&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; line-height: 150%; padding: 0cm;&quot;&gt;&amp;nbsp;&lt;/span&gt;browser.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;















&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h5 style=&quot;background: white; line-height: 150%; margin-bottom: 12.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 12pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;strong&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; color: #c00000; font-size: 14pt; line-height: 150%; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;jQuery History&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h5&gt;

&lt;p style=&quot;background: white; line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;jQuery
was first released in January 2006 by&amp;nbsp;&lt;strong&gt;John Resig&lt;/strong&gt;&amp;nbsp;at BarCamp NYC. It is
currently headed by Timmy Wilson and maintained by a team of developers.&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Nowadays, jQuery is
widely used technology. Most of the websites are using jQuery. &lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;So, you can say that out of the lot of JavaScript
frameworks, jQuery is the most popular and the most extendable. Many of the
biggest companies on the web use jQuery.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Some of these companies are:&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;ul style=&quot;margin-top: 0cm;&quot; type=&quot;circle&quot;&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-top: 3pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Microsoft&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-top: 3pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Google&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-top: 3pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;IBM&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-top: 3pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Netflix&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p style=&quot;background: white; line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;h5 style=&quot;background: white; line-height: 150%; margin-bottom: 12.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 12pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;strong&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; color: #c00000; font-size: 14pt; line-height: 150%; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;JQuery Prerequisite&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h5&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;It is always advised to a fresher to learn the basics of web designing
before starting to learn jQuery. He should learn HTML, CSS and JavaScript
first. But, if you belong to a technical background, it is up to you.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;If you are a fresher and want to study these subjects first.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;h5 style=&quot;background: white; line-height: 150%; margin-bottom: 12.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 12pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;strong&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; color: #c00000; font-size: 14pt; line-height: 150%; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;How to use jQuery?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h5&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 6.0pt; margin: 6pt 2.4pt 7.2pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;There are
two ways to use jQuery.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 6.0pt; margin: 6pt 2.4pt 7.2pt; text-align: left;&quot;&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Local
Installation&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;− You can download jQuery library on your
local machine and include it in your HTML code.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;CDN Based
Version&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;− You can include jQuery library into your HTML code directly from
Content Delivery Network (CDN).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;



&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 2; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #c00000; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Local Installation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 6pt 0cm 7.2pt 2.4pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Go to
the&amp;nbsp;&lt;a href=&quot;https://jquery.com/download/&quot; target=&quot;_blank&quot;&gt;&lt;span color=&quot;windowtext&quot; style=&quot;text-decoration-line: none;&quot;&gt;https://jquery.com/download/&lt;/span&gt;&lt;/a&gt;&amp;nbsp;to
download the latest version available.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 6pt 0cm 7.2pt 2.4pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEh0dpVWWX5udnmwG_VtONvKjVTa3Bv0IPWB7K729UK8g5svj8K3Vb22DZXZ2rrjPRFn6kMp1yIrak0AicY_zmTySIWNOT-dv2gNxLqYwividK4PZFNTi5J12C5q1-016qCOuYVB8Ru7pul9NVpPGI2CbMNLUYwVXQ4-6BigLwBgw9d5N-YPmLmM4wTYrw=s711&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;479&quot; data-original-width=&quot;711&quot; height=&quot;432&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEh0dpVWWX5udnmwG_VtONvKjVTa3Bv0IPWB7K729UK8g5svj8K3Vb22DZXZ2rrjPRFn6kMp1yIrak0AicY_zmTySIWNOT-dv2gNxLqYwividK4PZFNTi5J12C5q1-016qCOuYVB8Ru7pul9NVpPGI2CbMNLUYwVXQ4-6BigLwBgw9d5N-YPmLmM4wTYrw=w640-h432&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 6pt 0cm 7.2pt 2.4pt; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 6pt 0cm 7.2pt 2.4pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgqz4HLqs97MwAnP0WXv61euSbDcc62BpVGuhHT2P6JF8UBiVQ4H4x4mF2Z2_YUPVS59IHBYAwa-qqL8C6YkfELQNYyJNu1N-79xTC8E5p--o22oKeFLhNnu9KVbMylBqstj1vgJjt8WTaDhas5XoNwaR2Gs3t57vpXGsuQyzLnnzXKAP7D5rVq15N30A=s1216&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;724&quot; data-original-width=&quot;1216&quot; height=&quot;382&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgqz4HLqs97MwAnP0WXv61euSbDcc62BpVGuhHT2P6JF8UBiVQ4H4x4mF2Z2_YUPVS59IHBYAwa-qqL8C6YkfELQNYyJNu1N-79xTC8E5p--o22oKeFLhNnu9KVbMylBqstj1vgJjt8WTaDhas5XoNwaR2Gs3t57vpXGsuQyzLnnzXKAP7D5rVq15N30A=w640-h382&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 6pt 0cm 7.2pt 2.4pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Now put
downloaded&amp;nbsp;&lt;b&gt;jquery-3.6.0.js&lt;/b&gt;&amp;nbsp;file in a directory of your
website, e.g. /jQquery.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin: 6pt 0cm 7.2pt 2.4pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Example&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 6.0pt; margin: 6pt 2.4pt 7.2pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Now you
can include&amp;nbsp;&lt;i&gt;jQuery&lt;/i&gt;&amp;nbsp;library in your HTML file as follows −&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 6.0pt; margin: 6pt 2.4pt 7.2pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;title&amp;gt;&lt;/span&gt;The jQuery Example&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;script&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;&quot;./jquery/jquery-3.6.0.js&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;script&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0070c1;&quot;&gt;$&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;document&lt;/span&gt;).&lt;span style=&quot;color: #795e26;&quot;&gt;ready&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt; () {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #001080;&quot;&gt;document&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;write&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Hello, World!&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Hello&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 6.0pt; margin: 6pt 2.4pt 7.2pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;This will
produce following result −&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 6.0pt; margin: 6pt 2.4pt 7.2pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 6.0pt; margin: 6pt 2.4pt 7.2pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhYONgVtovwZF2hlf_XP3W4GTUShqIs4WF5f7Xe3Arr8GgldSTICs78pvtR3zwXOSgUsw6AAiBmEA7AgC7VnEoyVL_qhlq513GboNKblYB8BWg6nCe_GFkoz2iqhnW46Owf6jWh8Gjz4fx-glwEAv6uhlCITi2_9nbrEB31QY37t07KZIRBS3SHhWfmuA=s694&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;228&quot; data-original-width=&quot;694&quot; height=&quot;131&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhYONgVtovwZF2hlf_XP3W4GTUShqIs4WF5f7Xe3Arr8GgldSTICs78pvtR3zwXOSgUsw6AAiBmEA7AgC7VnEoyVL_qhlq513GboNKblYB8BWg6nCe_GFkoz2iqhnW46Owf6jWh8Gjz4fx-glwEAv6uhlCITi2_9nbrEB31QY37t07KZIRBS3SHhWfmuA=w400-h131&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 6.0pt; margin: 6pt 2.4pt 7.2pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #c00000; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;CDN Based Version&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 6.0pt; margin: 6pt 2.4pt 7.2pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;You can
include jQuery library into your HTML code directly from Content Delivery
Network (CDN). Google and Microsoft provides content deliver for the latest
version.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 6.0pt; margin: 6pt 2.4pt 7.2pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 6.0pt; margin: 6pt 2.4pt 7.2pt; text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhXTWaCgaBgpSd0tFBX7aPrBhkbMYKZQjiT_ZfcH1zyeopZdxi9UcGK5dWwcwzJZ33LFC4Cc2FhkL7uZMgKSYRzz4RuFtag8bDwPq5V697fEBBAbHc66TPXe4mpZKT_H1zJnxiaQq9jGBM2BkObJHoV496x9bDvtEzsRnwDRj5VPx7iDoFijlR9DCfy6g=s1912&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;931&quot; data-original-width=&quot;1912&quot; height=&quot;312&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhXTWaCgaBgpSd0tFBX7aPrBhkbMYKZQjiT_ZfcH1zyeopZdxi9UcGK5dWwcwzJZ33LFC4Cc2FhkL7uZMgKSYRzz4RuFtag8bDwPq5V697fEBBAbHc66TPXe4mpZKT_H1zJnxiaQq9jGBM2BkObJHoV496x9bDvtEzsRnwDRj5VPx7iDoFijlR9DCfy6g=w640-h312&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: rgb(249, 249, 249); line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;We are using Google CDN version of the library
throughout this tutorial.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;b&gt;Example&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;Now let us rewrite above example using jQuery
library from Google CDN.&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;title&amp;gt;&lt;/span&gt;The jQuery Example&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;script&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;&quot;https://code.jquery.com/jquery-3.6.0.js&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;script&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0070c1;&quot;&gt;$&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;document&lt;/span&gt;).&lt;span style=&quot;color: #795e26;&quot;&gt;ready&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt; () {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #001080;&quot;&gt;document&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;write&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Hello, World!&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Hello&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; line-height: 24px; margin: 6pt 2.4pt 7.2pt; text-align: justify; white-space: normal;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 24px;&quot;&gt;This will produce following result −&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; line-height: 24px; margin: 6pt 2.4pt 7.2pt; text-align: justify; white-space: normal;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; line-height: 24px; margin: 6pt 2.4pt 7.2pt; text-align: justify; white-space: normal;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 24px;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhYONgVtovwZF2hlf_XP3W4GTUShqIs4WF5f7Xe3Arr8GgldSTICs78pvtR3zwXOSgUsw6AAiBmEA7AgC7VnEoyVL_qhlq513GboNKblYB8BWg6nCe_GFkoz2iqhnW46Owf6jWh8Gjz4fx-glwEAv6uhlCITi2_9nbrEB31QY37t07KZIRBS3SHhWfmuA=s694&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;228&quot; data-original-width=&quot;694&quot; height=&quot;131&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhYONgVtovwZF2hlf_XP3W4GTUShqIs4WF5f7Xe3Arr8GgldSTICs78pvtR3zwXOSgUsw6AAiBmEA7AgC7VnEoyVL_qhlq513GboNKblYB8BWg6nCe_GFkoz2iqhnW46Owf6jWh8Gjz4fx-glwEAv6uhlCITi2_9nbrEB31QY37t07KZIRBS3SHhWfmuA=w400-h131&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; line-height: 24px; margin: 6pt 2.4pt 7.2pt; text-align: justify; white-space: normal;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; line-height: 24px; margin: 6pt 2.4pt 7.2pt; text-align: justify; white-space: normal;&quot;&gt;&lt;/p&gt;&lt;/div&gt;

&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/7682841083004275505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/7682841083004275505'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2021/10/introduction-to-jquery.html' title='Introduction to JQuery'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEh0dpVWWX5udnmwG_VtONvKjVTa3Bv0IPWB7K729UK8g5svj8K3Vb22DZXZ2rrjPRFn6kMp1yIrak0AicY_zmTySIWNOT-dv2gNxLqYwividK4PZFNTi5J12C5q1-016qCOuYVB8Ru7pul9NVpPGI2CbMNLUYwVXQ4-6BigLwBgw9d5N-YPmLmM4wTYrw=s72-w640-h432-c" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-1838313701607337519</id><published>2021-09-23T10:18:00.000+05:30</published><updated>2021-09-23T10:18:11.573+05:30</updated><title type='text'>HTML Crud with FireBase</title><content type='html'>&lt;p&gt;&lt;iframe allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;400&quot; src=&quot;https://www.youtube.com/embed/SuWcC5N7TWo&quot; title=&quot;YouTube video player&quot; width=&quot;750&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Source Code:&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://github.com/pankkap/CRUD_Firebase&quot;&gt;https://github.com/pankkap/CRUD_Firebase&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Working App:&lt;/span&gt;&amp;nbsp;&lt;a href=&quot;https://pankkap.github.io/CRUD_Firebase/&quot;&gt;https://pankkap.github.io/CRUD_Firebase/&lt;/a&gt;&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/1838313701607337519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/1838313701607337519'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2021/09/html-crud-with-firebase.html' title='HTML Crud with FireBase'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/SuWcC5N7TWo/default.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-292494434703052129</id><published>2021-08-31T12:20:00.004+05:30</published><updated>2021-09-01T11:45:30.846+05:30</updated><title type='text'>Website Development Process</title><content type='html'>&lt;iframe width=&quot;750&quot; height=&quot;400&quot; src=&quot;https://www.youtube.com/embed/XqS75QvTyUo&quot; title=&quot;YouTube video player&quot; frameborder=&quot;0&quot; allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture&quot; allowfullscreen&gt;&lt;/iframe&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;In
this article, we’ll take a look at how the general website development process
may look like. In the world of the internet, the significance of having an
online presence is profoundly perceived. Each business needs a website whether
you are an online internet business or an offline store. The website design has
grown more strategic, complex, and demanding, good usability has become the
price of competitive entry.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;In
any case, designing a website isn’t a simple task. The ideal website isn’t just
a visual show-stopper. So, while usability is important, it is no longer the
key differentiator it once was, utility is equally important.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Future
of Website Design&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;The
future of great Web design is tied in with creating customer engagement and a
manner that obviously impacts business results and measurable objectives. The
interactive online environment offers a larger number of occasions to impact
clients’ dynamic where you can save tremendous worth by ensuring that our
websites are optimized.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;The
website should be accessible to anyone and responsive to use; the layout and
flow deeply impact the overall view of the site. There are a few things to keep
in mind before you start designing a website and the objectives you set out, in
the beginning, are of utmost importance.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;The
layout design is the way illustrations, text, and buttons are organized on your
page. The layout makes your site look great, yet a strong design additionally
makes it simple to utilize in light of the fact that the data is shown which
synch well, buttons are in places that individuals anticipate that them should
be, pictures are put so they help individuals comprehend what you’re attempting
to convey without hard-to-read text.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;What
enhancements would you make while designing a website to guarantee the site’s
drawn out more and relevant traffic?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Things
to keep in mind while designing your website&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; margin-left: 54.0pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 54pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -36pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: Arial;&quot;&gt;1.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Wireframe &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; margin-left: 54.0pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 54pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -36pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: Arial;&quot;&gt;2.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Layout&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; margin-left: 54.0pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 54pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -36pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: Arial;&quot;&gt;3.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Content&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; margin-left: 54.0pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 54pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -36pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: Arial;&quot;&gt;4.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Responsiveness &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Wireframe
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;













&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;A
website wireframe is a visual prototype of a web page that focuses on content,
layout, and behavior. It usually doesn&#39;t include any styling, color, or
graphics. It&#39;s like a blueprint to a house that shows the plan for plumbing and
electricity without the interior design.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeYWd0Acer3KjclP44HtGzS9y8mdQ-FVAnMGO5i-ddaYtBkRhA7XZAD5RVEQbNA8RkQDhOYaWoICg0raDMB_5twxYlv7psrNpiV9AX1sTcgjRRdGhcHQcbsMvBDh3TS75zVUpND2zt8wKd/s2000/Website+WireFrame.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1377&quot; data-original-width=&quot;2000&quot; height=&quot;275&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeYWd0Acer3KjclP44HtGzS9y8mdQ-FVAnMGO5i-ddaYtBkRhA7XZAD5RVEQbNA8RkQDhOYaWoICg0raDMB_5twxYlv7psrNpiV9AX1sTcgjRRdGhcHQcbsMvBDh3TS75zVUpND2zt8wKd/w400-h275/Website+WireFrame.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;A
website wireframe can also show the relationship between pages, allowing you to
navigate between a series of mockups with clickable components. A wireframe is
constructed using basic boxes, lines, and other shapes to create an outline of
the functional parts of a web page without wasting time creating an intricate,
polished design. It&#39;s often the first step in the website design and web
development process.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 12.0pt; line-height: 150%;&quot;&gt;The
wireframe helps communicate design concepts to a team, clients, or management. Best
available Wireframe Tools are:&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 12.0pt; line-height: 150%;&quot;&gt;Adobe
XD&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 12.0pt; line-height: 150%;&quot;&gt;InVision
Studio&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 12.0pt; line-height: 150%;&quot;&gt;Sketch&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 12.0pt; line-height: 150%;&quot;&gt;Figma&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 12.0pt; line-height: 150%;&quot;&gt;Canva&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;











&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Layout&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;A
website layout is the arrangement of all visual elements on the webpage and the
resulting relationships between them. Through the intentional positioning of
page elements, the layout can enhance the site’s message, as well as its
usability.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Layout
is a key component of website design. It determines the sequence in which page
elements are registered amongst visitors, which elements draw the most
attention, and the overall balance achieved in the design.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqmeH-NigDTQ5fpoycZPgQZ25Vai4Zj_jPCi1KskExamrnkdjQp9yM5-RClKBkrsJVmcEtHViROxSJxQIAnGMcz7Q7LXZnqkHdLE5t0-CEnTwcUnhyphenhyphenNeTSIGTSMg6VhBjCCgHuajygsv38/s1500/Website+Layout.png&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1246&quot; data-original-width=&quot;1500&quot; height=&quot;333&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqmeH-NigDTQ5fpoycZPgQZ25Vai4Zj_jPCi1KskExamrnkdjQp9yM5-RClKBkrsJVmcEtHViROxSJxQIAnGMcz7Q7LXZnqkHdLE5t0-CEnTwcUnhyphenhyphenNeTSIGTSMg6VhBjCCgHuajygsv38/w400-h333/Website+Layout.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Put
plainly, a good website layout can lead visitors’ focus in the right direction.
It can help them gravitate towards what matters most first, and then continue
to the following sections in order of significance.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;HTML
Layout Techniques&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;There
are four different techniques to create multicolumn layouts. Each technique has
its pros and cons:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;CSS
framework&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;CSS
float property&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;CSS
flexbox&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;CSS
grid&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;





&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Content&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Web
content refers to the textual, aural, or visual content published on a website.
Content means any creative element, for example, text, applications, images,
archived e-mail messages, data, e-services, audio and video files, and so on.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Web
content is the key behind traffic generation to websites. Creating engaging
content and organizing it into various categories for easy navigation is most
important for a successful website. Also, it is important to optimize the web
content for search engines so that it responds to the keywords used for searching.&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFgFdMEQ87gSCgP0rl8Pw_G0XesQsGd8F_zy4QgkuuzJ5Z5t96I-AfFgpuXdLkfyzClygU_D7UG_6Du2SahS1-TKGz5-CTUB2UsZ4FfPqj_R6PLAHxUtmabicSt8aAxSb5wjOm4Jss-AWt/s650/web-content.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;519&quot; data-original-width=&quot;650&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFgFdMEQ87gSCgP0rl8Pw_G0XesQsGd8F_zy4QgkuuzJ5Z5t96I-AfFgpuXdLkfyzClygU_D7UG_6Du2SahS1-TKGz5-CTUB2UsZ4FfPqj_R6PLAHxUtmabicSt8aAxSb5wjOm4Jss-AWt/w400-h320/web-content.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;There
are two basic kinds of web content:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Text:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt; Text
is simple. It is added on the webpage as text blocks or within images. The best
written content is unique textual web content that is free from plagiarism. Web
content added as text can also include good internal links that help readers
gain access to more information.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Multimedia:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;
Another kind of web content is multimedia. Simply put, multimedia refers to any
content which is not text; some examples include:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;b&gt;Animations&lt;/b&gt;:
Animations can be added with the help of Flash, Ajax, GIF images as well as
other animation tools.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Images&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;:
Images are considered the most popular option to incorporate multimedia to
websites. Clip art, photos, or even drawings can be created by means of a
scanner or a graphics editor. It is recommended to optimize the images so that
the users can download them quickly.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Audio&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;:
Different types of audio files can be added as part of the web content so as to
increase the desirability of the website.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Video&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;: It
is the most popular multimedia contents; however, when adding video files, the
publishers should make sure that they efficiently on various browsers.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;







&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Web
content management (WCM) is essential to run a website successfully. To manage
web content, publishers should organize content in line with the requirements
of the audience.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;This
includes usage of common content, terminology, and positioning; consistent
navigation; link management; and finally, metadata application. There are a
wide range of WCM tools available for effectively handling web content&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Responsiveness&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Responsive
Web design is the approach that suggests that design and development should
respond to the user’s behavior and environment based on screen size, platform
and orientation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;The
practice consists of a mix of flexible grids and layouts, images and an
intelligent use of CSS media queries. As the user switches from their laptop to
iPad, the website should automatically switch to accommodate for resolution,
image size and scripting abilities. One may also have to consider the settings
on their devices; if they have a VPN for iOS on their iPad, for example, the
website should not block the user’s access to the page. In other words, the
website should have the technology to automatically respond to the user’s
preferences. This would eliminate the need for a different design and
development phase for each new gadget on the market.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4luMMtUBKndsRVCX3TgF9AhNa3TlTnebljBvP7AuVPXx1FOcOFqYXa0mpchXa9B709K5nBwcuDxM3ru97FKUsspBNwNANpbmwx20SgrIm3SAn9XjtcHHUm3G7N9dihDfOZwr2bex2P8Li/s870/responsive_web_design.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;489&quot; data-original-width=&quot;870&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4luMMtUBKndsRVCX3TgF9AhNa3TlTnebljBvP7AuVPXx1FOcOFqYXa0mpchXa9B709K5nBwcuDxM3ru97FKUsspBNwNANpbmwx20SgrIm3SAn9XjtcHHUm3G7N9dihDfOZwr2bex2P8Li/w400-h225/responsive_web_design.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/292494434703052129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/292494434703052129'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2021/08/website-development-process.html' title='Website Development Process'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/XqS75QvTyUo/default.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-571409985677307336</id><published>2021-08-02T22:50:00.009+05:30</published><updated>2021-08-03T23:08:14.872+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Fullstack"/><title type='text'>Why FullStack Web Development?</title><content type='html'>&lt;iframe allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;400&quot; src=&quot;https://www.youtube.com/embed/5x-qlzqYzeg&quot; title=&quot;YouTube video player&quot; width=&quot;750&quot;&gt;&lt;/iframe&gt;

&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;If students
know coding and love to do programming that’s good but these qualities are not
enough to get the best Job. Because now &lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: black; font-size: 12pt; line-height: 150%; mso-color-alt: windowtext;&quot;&gt;companies are looking for logical minds with a wide range of
skills. They don’t deal with the conservative candidates. So students need to
prepare themselves accordingly and keep themselves updated with the latest
technological advancement and the software or applications companies are
working on.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6hvPmgjxk-IzqteJa5RhH8XnaltGMcF3hC2q_q5wER_NOiy3xTPqGO5PSKwr1FwmMr6Bkgy9VP7PJSFvZZs7NKHZhv4lhPAa_ZF8_ONQ9QAgvIeqMGqRqOftpOjjgqfV2r-JZzHwhFsbb/s1353/Fullstack.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;748&quot; data-original-width=&quot;1353&quot; height=&quot;354&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6hvPmgjxk-IzqteJa5RhH8XnaltGMcF3hC2q_q5wER_NOiy3xTPqGO5PSKwr1FwmMr6Bkgy9VP7PJSFvZZs7NKHZhv4lhPAa_ZF8_ONQ9QAgvIeqMGqRqOftpOjjgqfV2r-JZzHwhFsbb/w640-h354/Fullstack.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: black; font-size: 12pt; line-height: 150%; mso-color-alt: windowtext;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Well!
We are breathing in a revolutionized world where everything is digitized, and
where the Internet is the need of the hour for everyone. Businesses are moving
to an online platform to promote their brands and outreach the customer
globally. This technology advancement has impacted the whole world and brings
the latest amendments every other day in the software programs. That’s why more
and more people want to learn Web Development and adept career as a Web
Developer as most of the organizations are looking forward to&amp;nbsp;&lt;span style=&quot;border: 1pt none windowtext; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Front-End developer&lt;/span&gt;, Back-End developer, PHP Developer,
(.)Net developer, Cloud Architect, Devops Engineer and many more.&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: #2f5496; font-size: 12pt; line-height: 150%; mso-themecolor: accent1; mso-themeshade: 191;&quot;&gt;The
demand for &lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: #2f5496; font-size: 14pt; line-height: 150%; mso-themecolor: accent1; mso-themeshade: 191;&quot;&gt;Full-stack Developers &lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: #2f5496; font-size: 12pt; line-height: 150%; mso-themecolor: accent1; mso-themeshade: 191;&quot;&gt;is on the rise. And &lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background: white; font-size: 12pt; line-height: 150%;&quot;&gt;companies are in
desperate need of talented professionals who can work with both Front-End and
back-End &lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;due to which their demand is hiking. According to the
research, there is a&lt;span style=&quot;border: 1pt none windowtext; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;&amp;nbsp;20% growth in demand for Full-stack
developer&lt;/span&gt;&amp;nbsp;compared to the last couple of years.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNcMtXSADS1SKr0SoXjzyyDk74qeFoe1ZH4jtNHmuZNwPJu7UV_Z7eKQUBl1hkwQZip09bp0-roCsMhTo_lU8yJHVlpvenrSotoiFF0aKFhIFElYOop-dvixIpnVJz0Ho4iLGJFxsa1T68/s1024/Full-Stack-Development-Services-1.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;512&quot; data-original-width=&quot;1024&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNcMtXSADS1SKr0SoXjzyyDk74qeFoe1ZH4jtNHmuZNwPJu7UV_Z7eKQUBl1hkwQZip09bp0-roCsMhTo_lU8yJHVlpvenrSotoiFF0aKFhIFElYOop-dvixIpnVJz0Ho4iLGJFxsa1T68/w640-h320/Full-Stack-Development-Services-1.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background: white; line-height: 150%; margin: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background: white; line-height: 150%; margin: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjP78Ls0IJHqXz-uO9CWV6kiw8fK2s-tS5sMASiPg9RlokNffncNIw1_atAJLQzKfeZt_a8eGM5dZDvp_g6fw2rhC51tDDVhPZGhTYkqIQD-yR9MPn4mGWfxrphY_KBzZo_SSVTG27ohoXN/s942/Technologies.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;361&quot; data-original-width=&quot;942&quot; height=&quot;208&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjP78Ls0IJHqXz-uO9CWV6kiw8fK2s-tS5sMASiPg9RlokNffncNIw1_atAJLQzKfeZt_a8eGM5dZDvp_g6fw2rhC51tDDVhPZGhTYkqIQD-yR9MPn4mGWfxrphY_KBzZo_SSVTG27ohoXN/w540-h208/Technologies.png&quot; width=&quot;540&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;background: white; line-height: 150%; margin: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background: white; line-height: 150%; margin: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;However, &lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #2f5496; line-height: 150%; mso-themecolor: accent1; mso-themeshade: 191;&quot;&gt;Full-stack Developer &lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;holds
various skills and knowledge of languages like HTML5, CSS, JavaScript, Angular,
and React which comes under front-end development. For back-end, they also
possess knowledge regarding NodeJs, Express, phyton, Java, PHP, and multiple
databases such as MongoDB, SQL, etc. The role of the full-stack developer is to
look at every aspect of software development within an organization.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background: white; line-height: 150%; margin: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background: white; line-height: 150%; margin: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIqU7vlWPxBmj_pWnGgIcTc37iJ2k7-7kYYlMrd_uF0Inkz0pUoThXJaePyQLaPN0hCSmhHbVnOlP-Ew4_FHDJEguyEt4U7iTl5lniFZMtmZ_-dT1SAUmETtrGkzeUM7vxaFC4C_nW8q7t/s1051/Recruiters.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;631&quot; data-original-width=&quot;1051&quot; height=&quot;384&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIqU7vlWPxBmj_pWnGgIcTc37iJ2k7-7kYYlMrd_uF0Inkz0pUoThXJaePyQLaPN0hCSmhHbVnOlP-Ew4_FHDJEguyEt4U7iTl5lniFZMtmZ_-dT1SAUmETtrGkzeUM7vxaFC4C_nW8q7t/w640-h384/Recruiters.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;background: white; line-height: 150%; margin: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;background: white; line-height: 150%; margin: 0cm; text-align: center; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #c00000; font-size: 20pt; line-height: 107%; mso-ansi-language: EN-IN; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;GOOGLE LINKS&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 24pt; margin-bottom: 0cm; mso-outline-level: 2;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #1a0dab; font-size: 15pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;a href=&quot;https://in.linkedin.com/jobs/full-stack-developer-jobs&quot; target=&quot;_blank&quot;&gt;8,000+ Full Stack Developer jobs in India (143 new) - LinkedIn&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 18pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #202124; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;in.linkedin.com&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #5f6368; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;›&amp;nbsp;jobs ›
full-stack-developer-jobs&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 0cm; mso-margin-top-alt: auto;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #1a0dab; font-size: 10pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #1a0dab; font-size: 15pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;a href=&quot;https://www.naukri.com/full-stack-web-developer-jobs&quot; target=&quot;_blank&quot;&gt;Apply to 64218 FullStack Web Developer Jobs on Naukri.com&lt;/a&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto;&quot;&gt;&lt;i&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #202124; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;www.naukri.com&lt;/span&gt;&lt;/i&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #5f6368; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;›&amp;nbsp;full stack web developer Jobs&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #202124; font-size: 5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 2.25pt; mso-outline-level: 3;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #1a0dab; font-size: 15pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;a href=&quot;https://www.monsterindia.com/search/full-stack-developer-jobs&quot; target=&quot;_blank&quot;&gt;Full Stack Developer Jobs (Mar 2021) - Monster India&lt;/a&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto;&quot;&gt;&lt;i&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #202124; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;www.monsterindia.com&lt;/span&gt;&lt;/i&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #5f6368; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;›&amp;nbsp;search › full-stack-developer-&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-margin-top-alt: auto;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: #1a0dab; font-size: 9pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: #1a0dab; font-size: 15pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;a href=&quot;https://in.indeed.com/Full-Stack-Developer-jobs&quot; target=&quot;_blank&quot;&gt;FullStack Developer Jobs February 2021 - Indeed&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: #202124; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;in.indeed.com&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: #5f6368; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;›&amp;nbsp;Full-Stack-Developer-jobs&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #1a0dab; font-size: 13.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-margin-top-alt: auto;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: #1a0dab; font-size: 15pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;a href=&quot;https://www.glassdoor.co.in/Job/full-stack-developer-jobs-SRCH_KO0,20.htm&quot; target=&quot;_blank&quot;&gt;Full stack web developer Jobs in India | Glassdoor&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background: white; line-height: 150%; margin: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;





















&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto;&quot;&gt;&lt;i&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #202124; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;www.glassdoor.co.in&amp;nbsp;›&amp;nbsp;Job › india-full-stack-web-developer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto;&quot;&gt;&lt;i&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #202124; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/571409985677307336'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/571409985677307336'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2021/08/why-fullstack-web-development.html' title='Why FullStack Web Development?'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/5x-qlzqYzeg/default.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-1445882345192236474</id><published>2021-03-13T09:47:00.009+05:30</published><updated>2022-07-23T19:34:17.450+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="React"/><title type='text'>React Router</title><content type='html'>&lt;h2 style=&quot;background: rgb(254, 254, 254); line-height: 150%; margin-bottom: 15pt; text-align: justify;&quot;&gt;&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;/p&gt;&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt; font-weight: normal; line-height: 150%;&quot;&gt;As
opposed to traditional multi-page applications, SPAs only maintain one HTML
file, commonly&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 14pt; font-weight: normal; line-height: 150%;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;index.html&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; font-weight: normal; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;.&lt;/span&gt; Instead of serving a different HTML file for each
path, SPAs depend on&amp;nbsp;client-side routing. React Router is a popular
client-side routing library.&lt;/span&gt;&lt;/p&gt;

&lt;/h2&gt;&lt;h2 style=&quot;background: rgb(254, 254, 254); line-height: 150%; margin-bottom: 15pt; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 14pt; font-weight: normal; line-height: 150%;&quot;&gt;Routing is a process
in which a user is directed to different pages based on their action or
request. ReactJS Router is mainly used for developing&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%;&quot;&gt;Single Page Web Applications (SPA)&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt; &lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 14pt; font-weight: normal; line-height: 150%;&quot;&gt;React Router is used
to define multiple routes in the application. When a user types a specific URL
into the browser, and if this URL path matches any &#39;route&#39; inside the router
file, the user will be redirected to that particular route.&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt; font-weight: normal; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Calibri, sans-serif&quot; style=&quot;background: white; color: #4472c4; font-size: 18pt; line-height: 150%;&quot;&gt;&lt;b&gt;Why use
React router?&lt;/b&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext;&quot;&gt;React Router plays an
important role to display multiple views in a single page application. Without
React Router, it is not possible to display multiple views in React
applications. Most of the social media websites like &lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: #4472c4; font-size: 14pt; line-height: 150%; mso-themecolor: accent1;&quot;&gt;Facebook, Instagram &lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext;&quot;&gt;uses React Router for
rendering multiple views.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; font-size: 14pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 12.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 12.0pt; margin: 12pt 0cm; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%;&quot;&gt;React Router uses component structure to call
components, which display the appropriate information. React router also allows
the user to utilize browser functionality like the back button, and the refresh
page, all while maintaining the correct view of the application.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 2; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%;&quot;&gt;&lt;b&gt;React Router Installation&lt;/b&gt;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt; font-weight: normal; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 14pt; font-weight: normal; line-height: 150%;&quot;&gt;React contains three
different packages for routing. These are:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-left: 36pt; margin-top: 3pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; text-align: justify; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 14pt; font-weight: normal; line-height: 150%;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;1.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%;&quot;&gt;&lt;b&gt;react-router&lt;/b&gt;:&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;span style=&quot;font-weight: normal;&quot;&gt;It provides the core routing components and functions for the
React Router applications.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-left: 36pt; margin-top: 3pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; text-align: justify; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 14pt; font-weight: normal; line-height: 150%;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;2.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%;&quot;&gt;&lt;b&gt;react-router-dom&lt;/b&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 14pt; font-weight: normal; line-height: 150%;&quot;&gt;&amp;nbsp;It is used for web applications design.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-left: 36pt; margin-top: 3pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; text-align: justify; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 14pt; font-weight: normal; line-height: 150%;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;3.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%;&quot;&gt;&lt;b&gt;react-router-native&lt;/b&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 14pt; font-weight: normal; line-height: 150%;&quot;&gt;&amp;nbsp;It is used for mobile applications.&lt;/span&gt;&lt;/p&gt;

&lt;div style=&quot;background: white; border-bottom: 1pt solid rgb(231, 231, 231); border-left: none; border-right: none; border-top: 1pt solid rgb(231, 231, 231); margin-left: 0cm; margin-right: 4.75pt; mso-border-bottom-alt: solid #E7E7E7 .75pt; mso-border-top-alt: solid #E7E7E7 .75pt; mso-element: para-border-div; padding: 14pt 0cm;&quot;&gt;

&lt;h2 style=&quot;background: white; border: none; line-height: 150%; margin: 0cm; mso-border-bottom-alt: solid #E7E7E7 .75pt; mso-border-top-alt: solid #E7E7E7 .75pt; mso-padding-alt: 14.0pt 0cm 14.0pt 0cm; padding: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #f2bb13; font-size: 14pt; font-weight: normal; line-height: 150%;&quot;&gt;Step 1: Install React
Router&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;

&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 14pt; font-weight: normal; line-height: 150%;&quot;&gt;It is not possible to
install react-router directly in your application. To use react routing, first,
you need to install react-router-dom modules in your application. The below
command is used to install react router dom.&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;span style=&quot;color: #d4d4d4; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #d4d4d4; font-size: 14px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;npm&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;install&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;react&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;router&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;dom&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #d4d4d4; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background: white; border-bottom: 1pt solid rgb(231, 231, 231); border-left: none; border-right: none; border-top: 1pt solid rgb(231, 231, 231); margin-left: 0cm; margin-right: 4.75pt; padding: 14pt 0cm;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #f2bb13; font-size: 14pt; text-align: justify;&quot;&gt;Step 2: Make
Four components.&lt;/span&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 14pt; font-weight: normal; line-height: 150%;&quot;&gt;In our project, we
will create four more components in the directory called Pages along with&amp;nbsp;App.js,
which is already present.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%;&quot;&gt;&lt;b&gt;Pages/Home.js&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;Home&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Home&amp;nbsp;Page&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div&gt;}&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%;&quot;&gt;&lt;b&gt;Pages/About.js&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;About&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;About&amp;nbsp;Page&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%;&quot;&gt;&lt;b&gt;Pages/Contact.js&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;Contact&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Contact&amp;nbsp;Page&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div&gt;}&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%;&quot;&gt;&lt;b&gt;Pages/Navbar.js&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;Navbar&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;nav&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;navbar&amp;nbsp;navbar-expand-lg&amp;nbsp;navbar-dark&amp;nbsp;bg-dark&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;container-fluid&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;ul&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;nav&amp;nbsp;navbar-nav&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;li&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;nav-item&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;a&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;/&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;nav-link&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;exact&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Home&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;li&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;nav-item&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;a&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;/about&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;nav-link&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;exact&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;About&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;li&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;nav-item&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;a&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;/contact&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;nav-link&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;exact&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Contact&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/nav&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10.5pt; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style=&quot;background: white; border-bottom: 1pt solid rgb(231, 231, 231); border-left: none; border-right: none; border-top: 1pt solid rgb(231, 231, 231); margin-left: 0cm; margin-right: -2.3pt; mso-border-bottom-alt: solid #E7E7E7 .75pt; mso-border-top-alt: solid #E7E7E7 .75pt; mso-element: para-border-div; padding: 14pt 0cm;&quot;&gt;

&lt;h2 style=&quot;background: white; border: none; line-height: 150%; margin: 0cm; mso-border-bottom-alt: solid #E7E7E7 .75pt; mso-border-top-alt: solid #E7E7E7 .75pt; mso-padding-alt: 14.0pt 0cm 14.0pt 0cm; padding: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #f2bb13; font-size: 14pt; font-weight: normal; line-height: 150%;&quot;&gt;Step 3: Setup App.js
for Routing&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;

&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;b style=&quot;font-family: Arial, sans-serif; font-size: 14pt;&quot;&gt;App.js&lt;/b&gt;&lt;/p&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&#39;react&#39;&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;Navbar&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;./Pages/Navbar&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;Home&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;./Pages/Home&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;About&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;./Pages/About&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;Contact&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;./Pages/Contact&quot;&lt;/span&gt;;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;App&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;Navbar&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;Home&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;About&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;Contact&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background: white; color: black; font-size: 14pt; font-weight: normal; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; text-align: left; white-space: pre;&quot;&gt;export&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; text-align: left; white-space: pre;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; text-align: left; white-space: pre;&quot;&gt;default&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; text-align: left; white-space: pre;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; text-align: left; white-space: pre;&quot;&gt;App&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; text-align: left; white-space: pre;&quot;&gt;;&lt;/span&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 24px; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt;&quot;&gt;For Routing, open the app.js file and import all the four component files in it. Here, you need to import line:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 24px; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 14pt; line-height: 28px;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt;&amp;nbsp;{&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;BrowserRouter&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;as&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Router&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Swtich&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Route&lt;/span&gt;&amp;nbsp;}&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;react-router-dom&quot;&lt;/span&gt;;&lt;/div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 14pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 24px; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 14pt; line-height: 28px;&quot;&gt;which helps us to implement the Routing. Now, our app.js file looks like below.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: #fefefe; font-size: 14pt; text-align: justify;&quot;&gt;&lt;b&gt;BrowserRouter as Router&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext;&quot;&gt;First, you&#39;ll need to set up your app to work with
React Router. Everything that gets rendered will need to go inside the&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;border: 1pt none windowtext; color: #c00000; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; padding: 0cm;&quot;&gt;&amp;lt;BrowserRouter&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: #c00000; font-size: 14pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext;&quot;&gt;element, but we just
rename &lt;/span&gt;&lt;span style=&quot;background: white; color: #c00000; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial;&quot;&gt;BrowserRouter&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: #c00000; font-size: 14pt; line-height: 150%;&quot;&gt; &lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext;&quot;&gt;as &lt;/span&gt;&lt;span style=&quot;background: white; color: #c00000; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial;&quot;&gt;Router&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: #c00000; font-size: 14pt; line-height: 150%;&quot;&gt; &lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext;&quot;&gt;only to reduce the long name of the &lt;/span&gt;&lt;span style=&quot;background: white; color: #c00000; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial;&quot;&gt;BrowserRouter&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext;&quot;&gt;. so wrap your App in
those first. It&#39;s the component that does all the logic of displaying various
components that you provide it with.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; font-size: 14pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;{&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;BrowserRouter&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;as&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;Router&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;Swtich&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;Route&lt;/span&gt;&amp;nbsp;}&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react-router-dom&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;Navbar&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;./Pages/Navbar&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;Home&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;./Pages/Home&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;About&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;./Pages/About&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;Contact&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;./Pages/Contact&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;Router&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;App&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;Navbar&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;Home&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;About&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;Contact&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;Router&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;;&lt;/div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;b style=&quot;background-color: transparent; font-family: Arial, sans-serif; font-size: 16pt;&quot;&gt;Switch&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext;&quot;&gt;Next, in your App component, add the&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;border: 1pt none windowtext; color: #c00000; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; padding: 0cm;&quot;&gt;Switch&lt;/span&gt;&lt;/code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: #c00000; font-size: 14pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext;&quot;&gt;element (open and
closing tags). These ensure that only one component is rendered at a time. &lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;It checks each route for a match&amp;nbsp;sequentially&amp;nbsp;and
stops once the&amp;nbsp;first&amp;nbsp;match is found.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;Router&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;App&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;Navbar&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd; color: maroon;&quot;&gt;&amp;lt;switch&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;Home&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;About&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;Contact&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd; color: maroon;&quot;&gt;&amp;lt;/switch&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;Router&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;}&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;You notice that we put
&lt;/span&gt;&lt;span style=&quot;color: #c00000; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;Navbar /&amp;gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #c00000; font-size: 14pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt; &lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;component outside the switch, because we want that navbar will be
visible on each component that render. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;h2 style=&quot;background: rgb(254, 254, 254); line-height: 150%; margin-bottom: 15pt; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 16pt; line-height: 150%;&quot;&gt;Route&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 16pt; font-weight: normal; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;It&#39;s now time
to add your&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; color: #c00000; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;&amp;lt;Route&amp;gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #c00000; font-size: 14pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;tags. These are the links between
the components and should be placed inside the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; color: #c00000; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;&amp;lt;Switch&amp;gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #c00000; font-size: 14pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;tags.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;To tell
the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; color: #c00000; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;&amp;lt;Route&amp;gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #c00000; font-size: 14pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;tags which component to
load, simply add a&amp;nbsp;&lt;span style=&quot;border: 1pt none windowtext; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;path&lt;/span&gt;&amp;nbsp;attribute and the name of the
component you want to load with&amp;nbsp;&lt;span style=&quot;border: 1pt none windowtext; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;component&lt;/span&gt;&amp;nbsp;attribute.
The &lt;/span&gt;&lt;span style=&quot;color: #c00000; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;Route&amp;gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #c00000; font-size: 14pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt; &lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;will return null in case the specified URL doesn’t
match the defined path. &lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 10.5pt; font-weight: normal;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;Router&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;App&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;Navbar&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;switch&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;Route&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;path&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;/&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;exact&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;component&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;Home&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;} /&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;Route&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;path&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;/about&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;exact&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;component&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;About&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;} /&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;Route&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;path&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;/contact&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;exact&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;component&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;Contact&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;} /&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/switch&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;Router&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: rgb(254, 254, 254); line-height: 150%; margin-bottom: 22.5pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;When the route
matches&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(241, 240, 234); color: #c00000; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;/&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;, the application shows the&amp;nbsp;Dashboard&amp;nbsp;component.
When the route is changed by clicking the “&lt;/span&gt;&lt;span style=&quot;color: #c00000; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;About&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;” link to&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(241, 240, 234); color: #c00000; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;/about&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;, the Dashboard component
is removed and the&amp;nbsp;About&amp;nbsp;component is inserted in the DOM.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: rgb(254, 254, 254); line-height: 150%; margin-bottom: 22.5pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Notice
the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(241, 240, 234); color: #c00000; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;exact&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;attribute. Without this,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(241, 240, 234); color: #c00000; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;path=&quot;/&quot;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #c00000; font-size: 14pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;would also match&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(241, 240, 234); color: #c00000; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;/about&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;, since&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(241, 240, 234); color: #c00000; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;/&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;is
contained in the route. &lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext;&quot;&gt;&amp;nbsp;However&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;,&lt;/span&gt;&amp;nbsp;we
want&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: white; color: #c00000; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial;&quot;&gt;‘/’&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: #c00000; font-size: 14pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext;&quot;&gt;to match&amp;nbsp;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;only&lt;/span&gt;&amp;nbsp;our
render function, hence using ‘exact’ explicitly achieves this.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; font-size: 14pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style=&quot;background: white; border-bottom: 1pt solid rgb(231, 231, 231); border-left: none; border-right: none; border-top: 1pt solid rgb(231, 231, 231); margin-left: 0cm; margin-right: 4.75pt; mso-border-bottom-alt: solid #E7E7E7 .75pt; mso-border-top-alt: solid #E7E7E7 .75pt; mso-element: para-border-div; padding: 14pt 0cm;&quot;&gt;

&lt;h2 style=&quot;background: white; border: none; line-height: 150%; margin: 0cm; mso-border-bottom-alt: solid #E7E7E7 .75pt; mso-border-top-alt: solid #E7E7E7 .75pt; mso-padding-alt: 14.0pt 0cm 14.0pt 0cm; padding: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #f2bb13; font-size: 14pt; font-weight: normal; line-height: 150%;&quot;&gt;Step 4: Adding
Navigation Link&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;

&lt;/div&gt;

&lt;h2 style=&quot;background: rgb(254, 254, 254); line-height: 150%; margin-bottom: 15pt; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 16pt; line-height: 150%;&quot;&gt;Link&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 16pt; font-weight: normal; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;

&lt;p style=&quot;background: rgb(254, 254, 254); line-height: 150%; margin-bottom: 22.5pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 22.5pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext;&quot;&gt;Sometimes, we want to need&amp;nbsp;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;multiple&lt;/span&gt;&amp;nbsp;links on a
single page. When we click on any of that particular&amp;nbsp;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;Link&lt;/span&gt;, it should load
that page which is associated with that path without&amp;nbsp;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;reloading&lt;/span&gt;&amp;nbsp;the web
page. To do this, we need to import&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0070c0; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial;&quot;&gt;&amp;lt;Link&amp;gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #0070c0; font-size: 14pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext;&quot;&gt;component in the&amp;nbsp;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;Navbar.js&lt;/span&gt;&amp;nbsp;file. The
Link component is used to trigger new routes. You import it from&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;background: rgb(241, 240, 234); color: #0070c0; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial;&quot;&gt;react-router-dom&lt;/span&gt;&lt;/code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%; mso-color-alt: windowtext;&quot;&gt;, and you can add the Link components to
point at different routes, with the&amp;nbsp;&lt;code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(241, 240, 234); line-height: 150%; mso-ansi-font-size: 14.0pt; mso-bidi-font-size: 14.0pt;&quot;&gt;to&lt;/span&gt;&lt;/code&gt;&amp;nbsp;attribute. &lt;span style=&quot;background: white;&quot;&gt;It is the equivalent of anchor tags: &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #0070c0; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial;&quot;&gt;&amp;lt;a&amp;gt; &amp;lt;/a&amp;gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background: rgb(254, 254, 254); font-size: 14pt; line-height: 150%;&quot;&gt;So now we should update&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Helvetica&amp;quot;,sans-serif&quot; style=&quot;background: rgb(254, 254, 254); color: #cc0000; font-size: 14pt; line-height: 150%;&quot;&gt;Navbar.js&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background: rgb(254, 254, 254); font-size: 14pt; line-height: 150%;&quot;&gt;&amp;nbsp;for providing Navigation link in react application by replacing &lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #c00000; font-family: Consolas; font-size: 14pt; line-height: 150%;&quot;&gt;&amp;lt;a&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 14pt; line-height: 150%;&quot;&gt; tag to &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #c00000; font-family: Consolas; font-size: 14pt; line-height: 150%;&quot;&gt;&amp;lt;Link&amp;gt;
&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 14pt; line-height: 150%;&quot;&gt;Tag and &lt;span style=&quot;color: #cc0000;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #c00000; font-family: Consolas; font-size: 14pt; line-height: 150%;&quot;&gt;href&#39;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 14pt; line-height: 150%;&quot;&gt;to &lt;span style=&quot;color: #cc0000;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: Consolas; font-size: 14pt; line-height: 150%;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;to&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 14pt; line-height: 150%;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&#39;&lt;/span&gt;
attribute.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #0070c0; font-family: Consolas; font-size: 14pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%;&quot;&gt;&lt;b&gt;Pages/Navbar.js&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;{&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;Link&lt;/span&gt;&amp;nbsp;}&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react-router-dom&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;Navbar&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;nav&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;navbar&amp;nbsp;navbar-expand-lg&amp;nbsp;navbar-dark&amp;nbsp;bg-dark&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;container-fluid&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;ul&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;nav&amp;nbsp;navbar-nav&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;li&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;nav-item&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd; color: #267f99;&quot;&gt;Link&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;to&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&quot;/&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;className&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&quot;nav-link&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;exact&lt;/span&gt;&lt;span style=&quot;background-color: white; color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Home&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: maroon;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd; color: #267f99;&quot;&gt;Link&lt;/span&gt;&lt;span style=&quot;background-color: white; color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;li&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;nav-item&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd; color: #267f99;&quot;&gt;Link&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;to&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&quot;/about&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;className&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&quot;nav-link&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;exact&lt;/span&gt;&lt;span style=&quot;background-color: white; color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;About&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: maroon;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd; color: #267f99;&quot;&gt;Link&lt;/span&gt;&lt;span style=&quot;background-color: white; color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;li&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;nav-item&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd; color: #267f99;&quot;&gt;Link&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;to&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&quot;/contact&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;className&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&quot;nav-link&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;exact&lt;/span&gt;&lt;span style=&quot;background-color: white; color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Contact&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: maroon;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd; color: #267f99;&quot;&gt;Link&lt;/span&gt;&lt;span style=&quot;background-color: white; color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/nav&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;}&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: transparent; font-size: 14pt; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 16pt; line-height: 150%;&quot;&gt;&lt;b&gt;404
Page Not Found&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt; font-weight: normal; line-height: 150%;&quot;&gt;A common
use case for when you’re building a web app is to have a “catch all” route that
will be rendered if none of your other routes match. A common example of this
would be a 404 page.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%;&quot;&gt;To
create a client side &quot;404 not found&quot; fallback all you need to do is
make use of a &lt;/span&gt;&lt;span style=&quot;color: #c00000; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial;&quot;&gt;&amp;lt;Route /&amp;gt; &lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%;&quot;&gt;component
with a non-greedy matching path. Create your &lt;/span&gt;&lt;span style=&quot;color: #c00000; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial;&quot;&gt;NotFound&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%;&quot;&gt; component, i.e. the page which will display
404 error message:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%;&quot;&gt;&lt;b&gt;Pages/NotFound.js&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;NotFound&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h3&amp;gt;&lt;/span&gt;404&amp;nbsp;page&amp;nbsp;not&amp;nbsp;found&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;We&amp;nbsp;are&amp;nbsp;sorry&amp;nbsp;but&amp;nbsp;the&amp;nbsp;page&amp;nbsp;you&amp;nbsp;are&amp;nbsp;looking&amp;nbsp;for&amp;nbsp;does&amp;nbsp;not&amp;nbsp;exist.&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;);&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: transparent; font-size: 14pt; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: transparent; font-size: 14pt; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p style=&quot;line-height: 150%; margin: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt; font-weight: normal; letter-spacing: 0.15pt; line-height: 150%;&quot;&gt;Let&#39;s add&amp;nbsp;&lt;span class=&quot;token&quot;&gt;&lt;span style=&quot;background: rgb(247, 247, 247); border: 1pt none windowtext; color: #ff0066; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;&amp;lt;NotFound&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;component to
routes configuration, using&amp;nbsp;&lt;code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(247, 247, 247); border: 1pt none windowtext; color: black; line-height: 150%; mso-ansi-font-size: 14.0pt; mso-bidi-font-size: 14.0pt; mso-border-alt: none windowtext 0cm; mso-color-alt: windowtext; padding: 0cm;&quot;&gt;*&lt;/span&gt;&lt;/code&gt;&amp;nbsp;as a
value of the&amp;nbsp;&lt;code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(247, 247, 247); border: 1pt none windowtext; color: black; line-height: 150%; mso-ansi-font-size: 14.0pt; mso-bidi-font-size: 14.0pt; mso-border-alt: none windowtext 0cm; mso-color-alt: windowtext; padding: 0cm;&quot;&gt;path&lt;/span&gt;&lt;/code&gt;&amp;nbsp;parameter to get a
non-greedy matching.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 150%; margin: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt; font-weight: normal; letter-spacing: 0.15pt; line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;line-height: 150%; margin: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt; font-weight: normal; letter-spacing: 0.15pt; line-height: 150%;&quot;&gt;It is important to remember that the 404 route&amp;nbsp;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;needs to be declared in the very bottom
of your routes configuration&lt;/span&gt;, so the&amp;nbsp;&lt;span class=&quot;token&quot;&gt;&lt;span style=&quot;background: rgb(247, 247, 247); border: 1pt none windowtext; color: #ff0066; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;&amp;lt;Route&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;is only
mounted if any of the routes&#39; path declared above are not matched:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt;&quot;&gt;&lt;b&gt;App.js&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;NotFound&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;./Pages/NotFound&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;Router&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;App&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;Navbar&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;switch&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;/*&amp;nbsp;Other&amp;nbsp;Page&amp;nbsp;Routes&amp;nbsp;*/&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;Route&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;component&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;NotFound&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/switch&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;Router&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: transparent; font-size: 14pt; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt; font-weight: normal; letter-spacing: 0.15pt; line-height: 150%;&quot;&gt;See the example below, try to enter some non valid url to see 404
page:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjcgXPGToKtTNZaW-3B5MHugI7fafeHHfDnUvTjeXQYkYpHhCNwgrt1f0Y2H2SxM1zk6SAk22yJYREpQWwdvBftZAZgq4DkyGQaAyqmaK7Obr08faqkQzufthxWk8f-rvctQOSxrgMwszR/s1180/pageNotFound.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1003&quot; data-original-width=&quot;1180&quot; height=&quot;524&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjcgXPGToKtTNZaW-3B5MHugI7fafeHHfDnUvTjeXQYkYpHhCNwgrt1f0Y2H2SxM1zk6SAk22yJYREpQWwdvBftZAZgq4DkyGQaAyqmaK7Obr08faqkQzufthxWk8f-rvctQOSxrgMwszR/w617-h524/pageNotFound.png&quot; width=&quot;617&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt; font-weight: normal; letter-spacing: 0.15pt; line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/1445882345192236474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/1445882345192236474'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2021/03/react-router.html' title='React Router'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjcgXPGToKtTNZaW-3B5MHugI7fafeHHfDnUvTjeXQYkYpHhCNwgrt1f0Y2H2SxM1zk6SAk22yJYREpQWwdvBftZAZgq4DkyGQaAyqmaK7Obr08faqkQzufthxWk8f-rvctQOSxrgMwszR/s72-w617-h524-c/pageNotFound.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-3040769677933826190</id><published>2021-03-06T14:20:00.006+05:30</published><updated>2022-07-23T18:57:34.698+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="React"/><title type='text'>Displaying List in React</title><content type='html'>&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; letter-spacing: 0.1pt; line-height: 150%;&quot;&gt;Lists are very useful when it comes to developing the UI
of any website. Lists are mainly used for displaying menus in a website, for
example, the navbar menu. In regular JavaScript, we can use&amp;nbsp;&lt;span style=&quot;border: 1pt none windowtext; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;arrays&lt;/span&gt;&amp;nbsp;for creating lists. We can create lists in
React in a similar manner as we do in regular JavaScript. We will see how to do
this in detail further in this article.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%;&quot;&gt;Using
JSX we can show lists using JavaScript&#39;s built-in&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd; color: #004dbf; font-family: Consolas; font-size: 14pt; line-height: 150%;&quot;&gt;Array.map()&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%;&quot;&gt;
method. The&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial;&quot;&gt;&lt;span style=&quot;background-color: #fce5cd; color: #004dbf;&quot;&gt;.map()&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%;&quot;&gt;
method&amp;nbsp;is often used to take one piece of data and convert it to another.
In our scenarios, we are taking data and converting it to a piece of our view.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%;&quot;&gt;&lt;a href=&quot;https://scotch.io/starters/react/handling-lists-in-react-jsx#toc-a-simple-example&quot;&gt;&lt;span color=&quot;windowtext&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;b&gt;A Simple
Example&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;box-sizing: inherit; line-height: 150%;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%;&quot;&gt;Let&#39;s
say we have a list of&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;-webkit-font-smoothing: auto; border-radius: 2px; box-sizing: inherit; display: inline-block;&quot;&gt;&lt;span style=&quot;background: rgb(240, 240, 240); color: #0066ff; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;&quot;&gt;array&lt;/span&gt;&lt;/code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%;&quot;&gt;&amp;nbsp;that we want to show in
a list:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;ArrayMap&lt;/span&gt;()&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #0070c1;&quot;&gt;arr&lt;/span&gt;&amp;nbsp;=&amp;nbsp;[&lt;span style=&quot;color: #098658;&quot;&gt;10&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;20&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;30&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;40&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;50&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #0070c1;&quot;&gt;newArr&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #0070c1;&quot;&gt;arr&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;map&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #001080;&quot;&gt;num&lt;/span&gt;)&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;console&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;log&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Num&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;num&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;li&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;num&lt;/span&gt;&amp;nbsp;*&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;});&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;console&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;log&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Old&amp;nbsp;Array&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #0070c1;&quot;&gt;arr&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;console&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;log&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;New&amp;nbsp;Array&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #0070c1;&quot;&gt;newArr&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #0070c1;&quot;&gt;newArr&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQMx0CXvSZ5Rnwz70-PZ4owkBhuDN9M6wWfwSrhjVg75pYnfBPe0GNs6Eo4e8WffuCzAnLTOdfdoH9PaiXY_eSNslXsxcbKy2jMhCQBNHORlb4nzJpRinVBAX_UM5SBGomk44AGsaFu2x2/s1050/Array+Map+Function-1.png&quot; style=&quot;font-weight: 700; margin-left: 1em; margin-right: 1em; white-space: pre;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;658&quot; data-original-width=&quot;1050&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQMx0CXvSZ5Rnwz70-PZ4owkBhuDN9M6wWfwSrhjVg75pYnfBPe0GNs6Eo4e8WffuCzAnLTOdfdoH9PaiXY_eSNslXsxcbKy2jMhCQBNHORlb4nzJpRinVBAX_UM5SBGomk44AGsaFu2x2/s320/Array+Map+Function-1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt; text-align: left;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%;&quot;&gt;This
component uses Array’s built-in&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;map&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%;&quot;&gt;&amp;nbsp;function
to create a new array &lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd; color: #0066ff; font-family: Consolas; font-size: 14pt; line-height: 150%;&quot;&gt;newArr&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%;&quot;&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt; &lt;/span&gt;that
has the same number of elements, and where each element is the result of
calling the function you provide.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: arial; font-size: large; line-height: 150%;&quot;&gt;The&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;background-color: #fce5cd; line-height: 150%;&quot;&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&lt;b&gt;{}&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-family: arial; font-size: large;&quot;&gt;&amp;nbsp;brackets are used to render the array of
elements.&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;ArrayMap&lt;/span&gt;()&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #0070c1;&quot;&gt;arr&lt;/span&gt;&amp;nbsp;=&amp;nbsp;[&lt;span style=&quot;color: #098658;&quot;&gt;10&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;20&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;30&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;40&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;50&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #0070c1;&quot;&gt;        arr&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;map&lt;/span&gt;((&lt;span style=&quot;color: #001080;&quot;&gt;num&lt;/span&gt;)&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;li&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;num&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;})&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 150%; margin-top: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%;&quot;&gt;The
above is the shorthand code for write the map function. &lt;span style=&quot;letter-spacing: -0.05pt;&quot;&gt;Since we
are not doing anything in the function&#39;s block body, we can also refactor it to
a concise body and omit the return statement and the curly braces for the
function body:&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;arr&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;map&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;num&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;li&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;num&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;)&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;&lt;strong style=&quot;text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; font-size: 14pt; letter-spacing: 0.1pt; line-height: 150%; padding: 0cm;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;&lt;strong style=&quot;text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1pt none windowtext; font-size: 14pt; letter-spacing: 0.1pt; line-height: 150%; padding: 0cm;&quot;&gt;Rendering lists inside Components&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 14pt; letter-spacing: 0.1pt; line-height: 150%;&quot;&gt;So from the component’s point of view, we have to pass a
list to a component using props and then use this component to render the list
to the DOM. We can update the above code in which we have directly rendered the
list to now a component that will accept an array as props and returns an
unordered list.&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-size: 14pt; letter-spacing: 0.1pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #40424e; font-size: 13pt; letter-spacing: 0.1pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #0070c1;&quot;&gt;mylist&lt;/span&gt;&amp;nbsp;=&amp;nbsp;[&lt;span style=&quot;color: #098658;&quot;&gt;10&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;20&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;30&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;40&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;50&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;&amp;nbsp;=&amp;nbsp;()&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;ListComponent&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;list&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #0070c1;&quot;&gt;mylist&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;/&amp;gt;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;ListComponent&lt;/span&gt;&amp;nbsp;=&amp;nbsp;({&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;list&lt;/span&gt;&amp;nbsp;})&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;(&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;list&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;map&lt;/span&gt;((&lt;span style=&quot;color: #001080;&quot;&gt;item&lt;/span&gt;)&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;(&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;li&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;item&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;))&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjggdc6J-wh3usiBR4c9LfXCTXi0O937ijCSWBppGuN6BCrjaeKBdKyAB8vEq_ZT_CX6XJLdlndyt-0X-KEyYfU81en4hvjZjfDYYoOD9aLHYAqX6-L_ErF2DHUDclhDyT63ljI1t54e0Mk/s1047/List+Component.png&quot; style=&quot;font-weight: 700; margin-left: 1em; margin-right: 1em; white-space: pre;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;514&quot; data-original-width=&quot;1047&quot; height=&quot;196&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjggdc6J-wh3usiBR4c9LfXCTXi0O937ijCSWBppGuN6BCrjaeKBdKyAB8vEq_ZT_CX6XJLdlndyt-0X-KEyYfU81en4hvjZjfDYYoOD9aLHYAqX6-L_ErF2DHUDclhDyT63ljI1t54e0Mk/w400-h196/List+Component.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 7.5pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt; letter-spacing: 0.1pt; line-height: 150%;&quot;&gt;You can see in the above output that the unordered list is successfully
rendered to the browser but a warning message is logged to the console.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Consolas; font-size: 12pt; letter-spacing: 0.1pt; text-align: left;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 7.5pt; text-align: left; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #cc3300; font-family: Consolas; font-size: 12pt; letter-spacing: 0.1pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Warning: Each
child in an array or iterator&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 7.5pt; text-align: left; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #cc3300; font-family: Consolas; font-size: 12pt; letter-spacing: 0.1pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; should have a unique &quot;key&quot;
prop&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; letter-spacing: 0.1pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 7.5pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt; letter-spacing: 0.1pt; line-height: 150%;&quot;&gt;The above warning message says that each of the list items in our
unordered list should have a unique key. A “key” is a special string attribute
you need to include when creating lists of elements in React. We will discuss
about keys in detail in further articles. For now, let’s just assign a key to each of our list items in the above code.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; letter-spacing: 0.1pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 7.5pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt; letter-spacing: 0.1pt; line-height: 150%;&quot;&gt;Below is the example where we display the list of Objects with keys.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; letter-spacing: 0.1pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;margin-bottom: 3.75pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 3.75pt; mso-line-height-alt: 14.4pt;&quot;&gt;&lt;span face=&quot;&amp;quot;Source Sans Pro&amp;quot;,sans-serif&quot; style=&quot;color: #121212; font-size: 19pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%;&quot;&gt;Display
Object List in React&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;box-sizing: border-box; line-height: 150%; text-align: justify; word-spacing: 1px;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%;&quot;&gt;Displaying
items from a list of objects in React is very simple. We can iterate over a
list of objects using the&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;-webkit-box-decoration-break: clone; -webkit-font-smoothing: subpixel-antialiased; background: rgba(0, 105, 255, 0.1); border-radius: 3px; box-sizing: border-box; display: inline-block;&quot;&gt;&lt;span style=&quot;color: #0066ff; font-family: Consolas; font-size: 14pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;&quot;&gt;.map()&lt;/span&gt;&lt;/code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%;&quot;&gt;&amp;nbsp;method in React JSX. Here is the
example in which we mapped a list of objects and displayed them in the React
app.&lt;span style=&quot;background: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background: white; font-family: Georgia, serif; font-size: 13pt; line-height: 107%;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;React&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;,&amp;nbsp;{&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;useState&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;&amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;&quot;react&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;../node_modules/bootstrap/dist/css/bootstrap.css&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;DemoMap&lt;/span&gt;()&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;[&lt;span style=&quot;color: #0070c1;&quot;&gt;user&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;addUser&lt;/span&gt;]&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;useState&lt;/span&gt;([&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;username&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;pankkap&quot;&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;password&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;pankaj123&quot;&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;2&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;username&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;manishkumar&quot;&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;password&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;manish456&quot;&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;3&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;username&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;sachinyadav&quot;&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;password&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;sachin789&quot;&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;]);&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;renderUser&lt;/span&gt;&amp;nbsp;=&amp;nbsp;(&lt;span style=&quot;color: #001080;&quot;&gt;user&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;index&lt;/span&gt;)&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;tr&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;key&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;index&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;user&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;user&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;username&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;user&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;password&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;};&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;container&amp;nbsp;mt-3&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;table&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;table&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;thead&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;thead-light&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;th&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;#&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/th&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;th&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;User&amp;nbsp;name&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/th&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;th&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;Password&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/th&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/thead&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;tbody&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #0070c1;&quot;&gt;user&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;map&lt;/span&gt;(&lt;span style=&quot;color: #795e26;&quot;&gt;renderUser&lt;/span&gt;)&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/tbody&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/table&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; line-height: 19px; white-space: pre;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Output:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; line-height: 19px; white-space: pre;&quot;&gt;&lt;b&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_qoR-A2MV4ZWo9RfN8UD7ycbWg9ee13Vq6tvW_Ru8kUTvwgK0sJDge891eQQBhvsFHbTI5J9kkHD1F_L8a_DIpvdLd1gRFxV35_y0-90VY0sOZDMozbZoptPbV2h5dO7SMTAFYrSuWUiE/s1135/List+Array+of+Objects.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;522&quot; data-original-width=&quot;1135&quot; height=&quot;184&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_qoR-A2MV4ZWo9RfN8UD7ycbWg9ee13Vq6tvW_Ru8kUTvwgK0sJDge891eQQBhvsFHbTI5J9kkHD1F_L8a_DIpvdLd1gRFxV35_y0-90VY0sOZDMozbZoptPbV2h5dO7SMTAFYrSuWUiE/w400-h184/List+Array+of+Objects.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/b&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background: white; font-size: 14pt; line-height: 150%;&quot;&gt;The&amp;nbsp;key&amp;nbsp;attribute is necessary for
React to identify which items have changed, are added, or are removed. Keys
should be given to the elements inside the array to give the elements a stable
identity. Since React uses a virtual DOM and depends on the key to identifying
items of a list, so in the above list example, we provided a unique id to every
list item.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/3040769677933826190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/3040769677933826190'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2021/03/displaying-lists-in-react.html' title='Displaying List in React'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQMx0CXvSZ5Rnwz70-PZ4owkBhuDN9M6wWfwSrhjVg75pYnfBPe0GNs6Eo4e8WffuCzAnLTOdfdoH9PaiXY_eSNslXsxcbKy2jMhCQBNHORlb4nzJpRinVBAX_UM5SBGomk44AGsaFu2x2/s72-c/Array+Map+Function-1.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-8981792550862154453</id><published>2021-02-28T10:04:00.006+05:30</published><updated>2022-07-23T18:58:17.129+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="React"/><title type='text'>React Events</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background: white; font-size: 12pt; line-height: 150%; text-align: justify;&quot;&gt;In web development,&amp;nbsp;events&amp;nbsp;represent
actions that happen in the web browser. By responding to events with&amp;nbsp;event
handlers, you can create dynamic&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; text-align: justify;&quot;&gt;&lt;a href=&quot;https://www.beta-labs.in/2020/09/js-introduction.html&quot;&gt;&lt;span style=&quot;background: white; color: #2b00fe; mso-color-alt: windowtext;&quot;&gt;JavaScript&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background: white;&quot;&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&amp;nbsp;&lt;/span&gt;applications
that respond to any user action, including clicking with a mouse, scrolling
along a webpage, touching a touch screen, and more.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background: white; font-size: 12pt; line-height: 150%;&quot;&gt;In&amp;nbsp;React&amp;nbsp;apps,
you can use event handlers to update&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;a href=&quot;https://www.beta-labs.in/2021/02/react-state.html&quot;&gt;&lt;span style=&quot;background: white; color: #2b00fe;&quot;&gt;state data&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background: white;&quot;&gt;, trigger&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://www.beta-labs.in/2021/02/reactjs-props.html&quot;&gt;&lt;span style=&quot;background: white; color: #2b00fe;&quot;&gt;prop&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background: white;&quot;&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&amp;nbsp;&lt;/span&gt;changes, or prevent default browser actions.
&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;React has
its own event handling system which is very similar to handling events on DOM
elements. The react event handling system is known as Synthetic Events. &lt;/span&gt;&lt;code&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background: rgb(242, 242, 242); font-size: 12pt; line-height: 150%;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;SyntheticEvent&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background: white; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;closely emulates
the standard browser event, but provides more consistent behavior for
different web browsers.&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Handling events with react have some
syntactic differences from handling events on DOM. These are:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;ol start=&quot;1&quot; style=&quot;margin-top: 0cm;&quot; type=&quot;1&quot;&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-top: 3pt;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;React events are named as&amp;nbsp;&lt;b&gt;camelCase&lt;/b&gt;&amp;nbsp;instead
     of&amp;nbsp;&lt;b&gt;lowercase&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-top: 3pt;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;With JSX, a function is passed as the&amp;nbsp;&lt;b&gt;event
     handler&lt;/b&gt;&amp;nbsp;instead of a&amp;nbsp;&lt;b&gt;string&lt;/b&gt;. For example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Event declaration in plain HTML:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 14.2pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 14.2pt;&quot;&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;button&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;onclick&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&quot;showMessage()&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 14.2pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 14.2pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Hello&amp;nbsp;JavaTpoint&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 14.2pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 14.2pt;&quot;&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Event declaration in React:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 14.2pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 14.2pt;&quot;&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;button&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;onClick&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;showMessage&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 14.2pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 14.2pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Hello&amp;nbsp;JavaTpoint&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 14.2pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 14.2pt;&quot;&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;&lt;/p&gt;

&lt;blockquote style=&quot;border: none; margin: 0px 0px 0px 40px; padding: 0px;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;3. In react, we
cannot return&amp;nbsp;&lt;b&gt;false&lt;/b&gt;&amp;nbsp;to prevent the&amp;nbsp;&lt;b&gt;default&lt;/b&gt;&amp;nbsp;behavior.
We must call&amp;nbsp;&lt;b&gt;preventDefault&lt;/b&gt;&amp;nbsp;event explicitly to prevent the
default behavior. For example:&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;blockquote style=&quot;border: none; margin: 0px 0px 0px 40px; padding: 0px; text-align: left;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;In plain HTML, to
prevent the default link behavior of opening a new page, we can write:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm; margin-left: 163.05pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 163.05pt; text-indent: -5cm;&quot;&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;a&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 12pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;href&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 12pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&quot;#&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 12pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;onclick&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 12pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&quot;console.log(&#39;You&amp;nbsp;had&amp;nbsp;clicked&amp;nbsp;a&amp;nbsp;Link.&#39;); return&amp;nbsp;false&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm; margin-left: 21.3pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 21.3pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Click_Me&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm; margin-left: 21.3pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 21.3pt;&quot;&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;







&lt;blockquote style=&quot;border: none; margin: 0px 0px 0px 40px; padding: 0px; text-align: left;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;In React, we can
write it as:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 21.3pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 21.3pt;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;ActionLink&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;()&amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 21.3pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 21.3pt;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;handleClick&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;e&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;)&amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 21.3pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 21.3pt;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;e&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;preventDefault&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 21.3pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 21.3pt;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;console&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;log&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&#39;You&amp;nbsp;had&amp;nbsp;clicked&amp;nbsp;a&amp;nbsp;Link.&#39;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 21.3pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 21.3pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 21.3pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 21.3pt;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&amp;nbsp;(&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 21.3pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 21.3pt;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;a&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;href&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&quot;#&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;onClick&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;handleClick&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 21.3pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 21.3pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Click_Me&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 21.3pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 21.3pt;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 21.3pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 21.3pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;);&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; margin-left: 21.3pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 21.3pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;In the above example, e is a&amp;nbsp;&lt;b&gt;Synthetic
Event&lt;/b&gt;&amp;nbsp;which defines according to the&amp;nbsp;&lt;b&gt;W3C&lt;/b&gt;&amp;nbsp;spec.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;

























&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;Now let us see how to use Event in
React.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;h2 style=&quot;background: white; margin-top: 0cm;&quot;&gt;&lt;br /&gt;&lt;/h2&gt;

&lt;h2 style=&quot;background: white; margin-top: 0cm;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-size: 16pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;onClick&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #111111; font-size: 15pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&amp;nbsp;Event handler in React&lt;/span&gt;&lt;span style=&quot;font-family: PT Sans, serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #222222; font-size: 12pt; line-height: 150%;&quot;&gt;The React&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-size: 12pt; line-height: 150%;&quot;&gt;onClick&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #222222; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;event
handler enables you to call a function and trigger an action when a user clicks
an element, such as a button, in your app.&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; line-height: 150%; margin-top: 0cm; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222;&quot;&gt;To&amp;nbsp;listen to events
in React, add the&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(247, 247, 249); color: #bd4147;&quot;&gt;onClick&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;attribute, which is the event handler,
to the target element. This specifies the function to be executed when that
element is clicked.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;pre&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;,&amp;nbsp;{&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;Component&lt;/span&gt;&amp;nbsp;}&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #267f99;&quot;&gt;ShowAlert&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;extends&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #267f99;&quot;&gt;Component&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;showAlert&lt;/span&gt;()&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;alert&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;I&#39;m&amp;nbsp;an&amp;nbsp;alert&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;render&lt;/span&gt;()&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;button&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;onClick&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;{this&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;showAlert&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;show&amp;nbsp;alert&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #267f99;&quot;&gt;ShowAlert&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;color: #4d4d4c;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Output:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;color: #4d4d4c;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_mOlKbKCzVJgcUmFSr-FDzSZLJEGUCPOPfa1j_zM-pdJyKVu86xVeyrkiRD5QTjwEo9pyVS9M6rDvDynpeKj4w6I_ueZlYM0SGCZr6JeIvzyMPu6oZTXOYYZRIu_AghB8rnXu-Ho8P6lk/s871/onClick+Example.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;508&quot; data-original-width=&quot;871&quot; height=&quot;234&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_mOlKbKCzVJgcUmFSr-FDzSZLJEGUCPOPfa1j_zM-pdJyKVu86xVeyrkiRD5QTjwEo9pyVS9M6rDvDynpeKj4w6I_ueZlYM0SGCZr6JeIvzyMPu6oZTXOYYZRIu_AghB8rnXu-Ho8P6lk/w400-h234/onClick+Example.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p style=&quot;background: white; line-height: 150%; margin-top: 0cm; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222;&quot;&gt;In the example above, the&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(247, 247, 249); color: #bd4147;&quot;&gt;onClick&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222;&quot;&gt;&amp;nbsp;attribute is set to the&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(247, 247, 249); color: #bd4147;&quot;&gt;showAlert&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222;&quot;&gt;&amp;nbsp;function, which
alerts a message. This means that whenever the button is clicked, the&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(247, 247, 249); color: #bd4147;&quot;&gt;showAlert&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;function is called, which, in turn, shows the alert box.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;h2 style=&quot;background: white; line-height: 150%; margin-top: 0cm; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #111111; font-size: 16pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;

&lt;h2 style=&quot;background: white; line-height: 150%; margin-top: 0cm; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #111111; font-size: 16pt; line-height: 150%;&quot;&gt;Handling events in class components&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;

&lt;p style=&quot;background: white; line-height: 150%; margin-top: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222;&quot;&gt;In JavaScript,&amp;nbsp;class
methods are not bound by default. Therefore, it’s necessary to bind functions
to the class instance.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;h3 style=&quot;background: white; line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #111111; font-size: 12pt; line-height: 150%;&quot;&gt;Binding in the&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-size: 12pt; line-height: 150%;&quot;&gt;render&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-size: 12pt; line-height: 150%;&quot;&gt;()&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #111111; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;method: &lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #222222; font-size: 12pt; font-weight: normal; line-height: 150%;&quot;&gt;One way to resolve the
problem of binding is to call bind in a&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; font-weight: normal; line-height: 150%;&quot;&gt;&lt;a href=&quot;https://blog.logrocket.com/react-reference-guide-render-props/&quot; target=&quot;_blank&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #764abc; text-decoration-line: none;&quot;&gt;render&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #764abc;&quot;&gt;&amp;nbsp;function&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #222222; font-size: 12pt; font-weight: normal; line-height: 150%;&quot;&gt;. This is done by binding it
in the&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-size: 12pt; font-weight: normal; line-height: 150%;&quot;&gt;render&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-size: 12pt; font-weight: normal; line-height: 150%;&quot;&gt;()&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #222222; font-size: 12pt; font-weight: normal; line-height: 150%;&quot;&gt;&amp;nbsp;function. This method requires
calling&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-size: 12pt; font-weight: normal; line-height: 150%;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-size: 12pt; font-weight: normal; line-height: 150%;&quot;&gt;bind&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-size: 12pt; font-weight: normal; line-height: 150%;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-size: 12pt; font-weight: normal; line-height: 150%;&quot;&gt;this&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-size: 12pt; font-weight: normal; line-height: 150%;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #222222; font-size: 12pt; font-weight: normal; line-height: 150%;&quot;&gt;&amp;nbsp;in the&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-size: 12pt; font-weight: normal; line-height: 150%;&quot;&gt;render&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-size: 12pt; font-weight: normal; line-height: 150%;&quot;&gt;()&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #222222; font-size: 12pt; font-weight: normal; line-height: 150%;&quot;&gt;function.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #111111; font-size: 12pt; font-weight: normal; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;button&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 12pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;onClick&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;{this&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 12pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;showAlert&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 12pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;bind&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;show&amp;nbsp;alert&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;h3 style=&quot;background: white; line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #111111; font-size: 12pt; line-height: 150%;&quot;&gt;Binding in the&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-size: 12pt; line-height: 150%;&quot;&gt;constructor&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-size: 12pt; line-height: 150%;&quot;&gt;()&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #111111; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;method: &lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; font-weight: normal; line-height: 150%;&quot;&gt;If binding in the render doesn’t work for
you, you can bind in the constructor. See an example below:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #267f99; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;ShowAlert&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;extends&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #267f99; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Component&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;constructor&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;props&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;)&amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;props&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;showAlert&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;showAlert&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;bind&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;The first&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;this.showAlert&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;refers to the&lt;/span&gt;&lt;span style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;showAlert&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt; method. Since this is done in the constructor,&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;this&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;refers to the&lt;/span&gt;&lt;span style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;ShowAlert&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;class component.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;The second&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;this.showAlert&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt; is also referring to the same&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;showAlert()&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;method, but we are now
calling&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;.bind()&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;on it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;The final&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;this&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;is the context we are passing
to&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;.bind(), &lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;and it refers to the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;ShowAlert&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt; class component.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;It’s also important to note that
if&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;showAlert&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt; isn’t bound to the class instance, it won’t be able to access&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;this.setState&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;because&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;this&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;will be&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;undefined&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;. This is another important reason to
bind event handling functions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;h3 style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #111111; font-size: 12pt; line-height: 150%;&quot;&gt;Binding in the&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;kwd&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-size: 12pt; line-height: 150%;&quot;&gt;arrow &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #111111; font-size: 12pt; line-height: 150%;&quot;&gt;function: &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;You can handle events in class
components by binding them with the fat arrow function. ES7 class properties
enable bindings at the method definition, as shown in the example below. By
definition, an arrow function expression has a shorter syntax than a function
expression and does not have its own&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;Merriweather&amp;quot;,serif; font-size: 13.5pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;Merriweather&amp;quot;,serif; font-size: 13.5pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;arguments&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;Merriweather&amp;quot;,serif; font-size: 13.5pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;Merriweather&amp;quot;,serif; font-size: 13.5pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;, &lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;or&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;Merriweather&amp;quot;,serif; font-size: 13.5pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;new.target&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;Merriweather&amp;quot;,serif; font-size: 13.5pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/h3&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm; margin-left: 14.2pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 14.2pt;&quot;&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 12pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;showAlert&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;=()&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;&amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm; margin-left: 14.2pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 14.2pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 12pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;alert&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 12pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&quot;I&#39;m&amp;nbsp;an&amp;nbsp;alert&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm; margin-left: 14.2pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 14.2pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 13pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;h2 style=&quot;background: white; margin-top: 0cm;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-size: 16pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;onChange&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #111111; font-size: 15pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&amp;nbsp;Event handler in React&lt;/span&gt;&lt;span style=&quot;font-family: PT Sans, serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;In the below example,
we have used only one component and adding an onChange event. This event will
trigger the&amp;nbsp;&lt;b&gt;changeText&lt;/b&gt;&amp;nbsp;function, which returns the company
name.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;,&amp;nbsp;{&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;Component&lt;/span&gt;&amp;nbsp;}&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #267f99;&quot;&gt;DemoOnChange&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;extends&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #267f99;&quot;&gt;React&lt;/span&gt;.&lt;span style=&quot;color: #267f99;&quot;&gt;Component&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;constructor&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;props&lt;/span&gt;)&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;super&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;props&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;state&lt;/span&gt;&amp;nbsp;=&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;tutorialName&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;&quot;&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;};&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;changeText&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;event&lt;/span&gt;)&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;setState&lt;/span&gt;({&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;tutorialName&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;event&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;target&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;value&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;render&lt;/span&gt;()&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;onChange&amp;nbsp;Event&amp;nbsp;Example&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;label&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;htmlFor&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;name&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;Enter&amp;nbsp;Tutorial&amp;nbsp;name:&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/label&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;input&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;text&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;companyName&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;onChange&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;{this&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;changeText&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;bind&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;)&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h4&amp;gt;&lt;/span&gt;You&amp;nbsp;entered:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;state&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;tutorialName&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h4&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #267f99;&quot;&gt;DemoOnChange&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;Output&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;When you execute the above code, you will get the
following output.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikd44QclWQ5biOfB_v0aRsf4ec4sm4gx2l9SQJkeJ40edU7-z8qwOTfs5_OQ4V5RSkafIFI7kLwtppksug9RfLVWcf4OXAqdD-eCs0rD_ebZOkitHtAH1eHAgRtQzeo9tKgpjMOe6Ga2d3/s807/onChange+Event_A.png&quot; style=&quot;font-family: monospace; margin-left: 1em; margin-right: 1em; white-space: pre;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;438&quot; data-original-width=&quot;807&quot; height=&quot;217&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikd44QclWQ5biOfB_v0aRsf4ec4sm4gx2l9SQJkeJ40edU7-z8qwOTfs5_OQ4V5RSkafIFI7kLwtppksug9RfLVWcf4OXAqdD-eCs0rD_ebZOkitHtAH1eHAgRtQzeo9tKgpjMOe6Ga2d3/w400-h217/onChange+Event_A.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;After entering the name in the textbox, you will
get the output as like below screen.&lt;/span&gt;&lt;/p&gt;

&lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Vvp53ljHGw-cIrqi3uyuVRxDYSuKYiDzCDXnpRvIHJXWM3t8NRBc7TFP3w3UWPUbhbiO3yz0hPck33PA0-zu3O-0d6SIOilgJXN1WtilUWxmwXiTw_Z4FwmRNmCO5FnfcAN8dBHND135/s808/onChange+Event_B.png&quot; style=&quot;font-family: monospace; margin-left: 1em; margin-right: 1em; white-space: pre;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;438&quot; data-original-width=&quot;808&quot; height=&quot;216&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Vvp53ljHGw-cIrqi3uyuVRxDYSuKYiDzCDXnpRvIHJXWM3t8NRBc7TFP3w3UWPUbhbiO3yz0hPck33PA0-zu3O-0d6SIOilgJXN1WtilUWxmwXiTw_Z4FwmRNmCO5FnfcAN8dBHND135/w400-h216/onChange+Event_B.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2 style=&quot;background: white; margin-top: 0cm;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-family: Consolas; font-size: 14pt; line-height: 107%; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;

&lt;h2 style=&quot;background: white; margin-top: 0cm;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;b&gt;&lt;span style=&quot;background: rgb(247, 247, 249); color: #bd4147; font-family: Consolas; font-size: 16pt; line-height: 107%; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;onSubmit&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #111111; font-family: &amp;quot;PT Sans&amp;quot;,serif; font-size: 15pt; line-height: 107%; mso-bidi-font-size: 16.0pt;&quot;&gt;&amp;nbsp;Event handler in React&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;

&lt;p style=&quot;background: white; line-height: 150%; margin-bottom: 14.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 14.4pt; margin: 14.4pt 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;You can control the submit
action by adding an event handler in the onSubmit attribute:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; margin-bottom: 14.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 14.4pt; margin: 14.4pt 0cm;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Verdana, sans-serif&quot; style=&quot;font-size: 11.5pt;&quot;&gt;Example&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;React&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;,&amp;nbsp;{&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Component&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&quot;react&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #267f99; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;MyForm&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;extends&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #267f99; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;React&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #267f99; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Component&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;constructor&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;props&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;)&amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;props&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;state&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;=&amp;nbsp;{&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;username:&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;};&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;mySubmitHandler&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;=&amp;nbsp;(&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;event&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;event&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;preventDefault&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;alert&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&quot;You&amp;nbsp;are&amp;nbsp;submitting&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;+&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;state&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;username&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;};&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;myChangeHandler&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;=&amp;nbsp;(&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;event&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;setState&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;({&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;username:&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;event&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;target&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;});&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;};&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;render&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;()&amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;(&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;form&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;onSubmit&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;{this&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;mySubmitHandler&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;onSubmit&amp;nbsp;Event&amp;nbsp;Example&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;Enter&amp;nbsp;your&amp;nbsp;name,&amp;nbsp;and&amp;nbsp;submit:&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;{this&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;state&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;username&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;input&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&quot;text&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;onChange&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;{this&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;myChangeHandler&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;input&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&quot;submit&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;export&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;default&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #267f99; font-family: Consolas; font-size: 12pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;MyForm&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 12pt; line-height: 150%;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; line-height: 150%; margin-bottom: 14.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 14.4pt; margin: 14.4pt 0cm; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;Note that we use&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: crimson; line-height: 150%; mso-ansi-font-size: 12.0pt; mso-bidi-font-size: 12.0pt;&quot;&gt;event.preventDefault()&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;to prevent the form
from actually being submitted.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-Z0bTjhCRi33G2t9c4Hi7Uvc2ORMAcxZjDFIvftGUpKyPWPr3Wg4fp-sR-8wxg2W-RHbuLQAnJBe9r_tAyTluV2A7ASUm6SLA3JQk2MGfrRLH4VVdlD2Xca3q_bH5VQ-GYvyWlvGXLiXx/s870/onSubmit+Event_A.png&quot; style=&quot;font-family: monospace; margin-left: 1em; margin-right: 1em; white-space: pre;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;501&quot; data-original-width=&quot;870&quot; height=&quot;230&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-Z0bTjhCRi33G2t9c4Hi7Uvc2ORMAcxZjDFIvftGUpKyPWPr3Wg4fp-sR-8wxg2W-RHbuLQAnJBe9r_tAyTluV2A7ASUm6SLA3JQk2MGfrRLH4VVdlD2Xca3q_bH5VQ-GYvyWlvGXLiXx/w400-h230/onSubmit+Event_A.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrbSVkhDUdlmQbIcGAcVGhZ177sMIxCEpMmkI6W8k-VlbFzzMNHYJEGCO4VZ-4tGi4YENIxzBtxSiKI8AnyP9jJg6VYGPJhFtG4UAMoq6ZvjrdD7K1WRFzfKtW2jyFrKflEP6d7-UKUhEH/s877/onSubmit+Event_B.png&quot; style=&quot;font-family: monospace; margin-left: 1em; margin-right: 1em; white-space: pre;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;504&quot; data-original-width=&quot;877&quot; height=&quot;230&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrbSVkhDUdlmQbIcGAcVGhZ177sMIxCEpMmkI6W8k-VlbFzzMNHYJEGCO4VZ-4tGi4YENIxzBtxSiKI8AnyP9jJg6VYGPJhFtG4UAMoq6ZvjrdD7K1WRFzfKtW2jyFrKflEP6d7-UKUhEH/w400-h230/onSubmit+Event_B.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/8981792550862154453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/8981792550862154453'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2021/02/react-events.html' title='React Events'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_mOlKbKCzVJgcUmFSr-FDzSZLJEGUCPOPfa1j_zM-pdJyKVu86xVeyrkiRD5QTjwEo9pyVS9M6rDvDynpeKj4w6I_ueZlYM0SGCZr6JeIvzyMPu6oZTXOYYZRIu_AghB8rnXu-Ho8P6lk/s72-w400-h234-c/onClick+Example.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-2052960424693992438</id><published>2021-02-27T13:31:00.007+05:30</published><updated>2022-07-23T18:58:41.151+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="React"/><title type='text'>React Hooks</title><content type='html'>&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;Earlier on in React, components were either class
components or functional components. Functional components were Javascript
functions that accepted props (data) to display and returned&amp;nbsp;&lt;a href=&quot;https://www.beta-labs.in/2021/02/reactjs-jsx.html&quot;&gt;&lt;span color=&quot;windowtext&quot;&gt;JSX&lt;/span&gt;&lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;Class components typically required more code but
could store state variables and could use&amp;nbsp;&lt;a href=&quot;https://www.beta-labs.in/2021/02/react-components-lifecycle.html&quot;&gt;&lt;span color=&quot;windowtext&quot;&gt;lifecycle methods&lt;/span&gt;&lt;/a&gt;. This made class
components the go-to option for making API calls, processing user input, etc.
Functional components became useful helpers for class components.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background: white; font-size: 12pt; line-height: 150%;&quot;&gt;With the release of&amp;nbsp;React
16.8&amp;nbsp;in 2019,&amp;nbsp;&lt;strong&gt;React
Hooks&lt;/strong&gt;&amp;nbsp;have finally become available to use in our
production applications. This allows React developers to make functional components
stateful. Instead of using a class component to hold stateful logic, we can use
functional components.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;React Hooks are not available in class-based
components — but instead they allow you to use React without JavaScript
classes. If you prefer to use functions instead of classes (which is
recommended in JavaScript) you can simply start using Hooks without worrying
about migrating your whole apps to classes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Hooks enable you to use
“class-features” In React by providing a set of built-in functions such as:&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 13.5pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;

&lt;/p&gt;&lt;ul type=&quot;disc&quot;&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;The&amp;nbsp;useState()&amp;nbsp;hook for using states
     from function components,&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,serif; font-size: 13.5pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;The&amp;nbsp;useEffect()&amp;nbsp;hook
     for performing side effects from function components (It&#39;s equivalent to
     life-cycle methods like&amp;nbsp;componentDidMount,&amp;nbsp;componentDidUpdate,
     and&amp;nbsp;componentWillUnmount&amp;nbsp;in React classes).&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,serif; font-size: 13.5pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;h1 style=&quot;background: white; line-height: 27pt; margin-bottom: 0cm; margin-left: 0cm; margin-right: 0cm; margin-top: 23.4pt; margin: 23.4pt 0cm 0cm;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #292929; font-size: 16pt;&quot;&gt;Hook State&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h1&gt;&lt;p class=&quot;jw&quot; style=&quot;background: white; line-height: 24pt; margin: 0cm;&quot;&gt;

&lt;/p&gt;&lt;p class=&quot;jw&quot; style=&quot;background: white; line-height: 24pt; margin: 0cm;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #292929; font-size: medium; letter-spacing: -0.05pt;&quot;&gt;let’s
set up a component with state, the&amp;nbsp;&lt;em&gt;hooks&amp;nbsp;&lt;/em&gt;way.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;HookDemo&lt;/span&gt;&amp;nbsp;=&amp;nbsp;()&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;React&amp;nbsp;Hooks&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;};&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;App&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p class=&quot;jw&quot; style=&quot;background: white; line-height: 24pt; margin: 0cm;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #292929; font-size: medium; letter-spacing: -0.05pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;jw&quot; style=&quot;background: white; line-height: 24pt; margin: 0cm;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;strong&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #292929; letter-spacing: -0.05pt;&quot;&gt;And
now, let’s use a React hook.&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #292929; letter-spacing: -0.05pt;&quot;&gt;We’ll add in some state
to the component . To do so, we’ll import the&amp;nbsp;&lt;strong&gt;useState hook&amp;nbsp;&lt;/strong&gt;from
React at the top of the App.js file:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;jw&quot; style=&quot;background: white; line-height: 24pt; margin: 0cm;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;background-color: white; color: #af00db;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;,&amp;nbsp;{&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;useState&lt;/span&gt;&amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #af00db;&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&#39;react&#39;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: white; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;jw&quot; style=&quot;background: white; line-height: 24pt; margin: 0cm;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #292929; letter-spacing: -0.05pt;&quot;&gt;Then
we’ll apply the useState hook at the top of the App component function, to set
up state functionality for the&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;background: rgb(242, 242, 242); color: #292929; letter-spacing: -0.05pt;&quot;&gt;stuRoll&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: #292929; font-family: &amp;quot;Georgia&amp;quot;,serif; letter-spacing: -0.05pt;&quot;&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: blue; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;HookDemo&lt;/span&gt;&amp;nbsp;=&amp;nbsp;()&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;[&lt;span style=&quot;color: #0070c1;&quot;&gt;stuRoll&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #0070c1;&quot;&gt;setStuRoll&lt;/span&gt;]&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;useState&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #292929; font-family: Georgia, serif; font-size: medium; letter-spacing: -0.05pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: white; color: #292929; letter-spacing: -0.05pt; line-height: 150%;&quot;&gt;There are three
aspects to the&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: white; color: #292929; letter-spacing: -0.05pt; line-height: 150%;&quot;&gt;&lt;span style=&quot;background-color: #fce5cd; color: #795e26; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; letter-spacing: normal; text-align: left; white-space: pre;&quot;&gt;useState&lt;/span&gt;&amp;nbsp;hook:&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;Times New Roman&amp;quot;, serif; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 36pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-align: justify; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; line-height: 150%;&quot;&gt;1.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #292929; letter-spacing: -0.05pt; line-height: 150%;&quot;&gt;The argument to&amp;nbsp;&lt;span style=&quot;background-color: #fce5cd; color: #795e26; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; letter-spacing: normal; text-align: left; text-indent: 0px; white-space: pre;&quot;&gt;useState&lt;/span&gt;&amp;nbsp;is its initial value. Therefore, with&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #292929; letter-spacing: -0.05pt; line-height: 150%;&quot;&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; letter-spacing: normal; text-align: left; text-indent: 0px; white-space: pre;&quot;&gt;useState&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; letter-spacing: normal; text-align: left; text-indent: 0px; white-space: pre;&quot;&gt;()&lt;/span&gt;&lt;/span&gt;, we are setting the initial value of&amp;nbsp;&lt;span style=&quot;background-color: #fce5cd; color: #0070c1; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; letter-spacing: normal; text-align: left; text-indent: 0px; white-space: pre;&quot;&gt;stuRoll&lt;/span&gt;&amp;nbsp;to a
blank value.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 36pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-align: justify; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; line-height: 150%;&quot;&gt;2.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #292929; letter-spacing: -0.05pt; line-height: 150%;&quot;&gt;The&amp;nbsp;&lt;span style=&quot;background-color: #fce5cd; color: #795e26; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; letter-spacing: normal; text-align: left; text-indent: 0px; white-space: pre;&quot;&gt;useState&lt;/span&gt;&amp;nbsp;method destructures your state object into an array of two values. The first
one is the current value of the variable that is being tracked in the component
state. Therefore, in&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #292929; letter-spacing: -0.05pt; line-height: 150%;&quot;&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; letter-spacing: normal; text-align: left; text-indent: 0px; white-space: pre;&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; letter-spacing: normal; text-align: left; text-indent: 0px; white-space: pre;&quot;&gt;&amp;nbsp;[&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #0070c1; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; letter-spacing: normal; text-align: left; text-indent: 0px; white-space: pre;&quot;&gt;stuRoll&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; letter-spacing: normal; text-align: left; text-indent: 0px; white-space: pre;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #0070c1; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; letter-spacing: normal; text-align: left; text-indent: 0px; white-space: pre;&quot;&gt;setStuRoll&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; letter-spacing: normal; text-align: left; text-indent: 0px; white-space: pre;&quot;&gt;]&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #795e26; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; letter-spacing: normal; text-align: left; text-indent: 0px; white-space: pre;&quot;&gt;useState&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; letter-spacing: normal; text-align: left; text-indent: 0px; white-space: pre;&quot;&gt;()&lt;/span&gt;,&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #292929; letter-spacing: -0.05pt; line-height: 150%;&quot;&gt;&lt;span style=&quot;background-color: #fce5cd; color: #0070c1; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; letter-spacing: normal; text-align: left; text-indent: 0px; white-space: pre;&quot;&gt;stuRoll&lt;/span&gt;&amp;nbsp;represents that current
value. It becomes a constant that can be used in the component code.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;jw&quot; style=&quot;background: white; line-height: 24pt; margin: 0cm;&quot;&gt;





&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 36pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-align: justify; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; line-height: 150%;&quot;&gt;3.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #292929; letter-spacing: -0.05pt; line-height: 150%;&quot;&gt;The second
value returned from the&amp;nbsp;&lt;span style=&quot;background-color: #fce5cd; color: #795e26; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; letter-spacing: normal; text-align: left; text-indent: 0px; white-space: pre;&quot;&gt;useState&lt;/span&gt;&amp;nbsp;function is a function itself. This function
updates the paired state variable. So&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #292929; letter-spacing: -0.05pt; line-height: 150%;&quot;&gt;&lt;span style=&quot;background-color: #fce5cd; color: #0070c1; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; letter-spacing: normal; text-align: left; text-indent: 0px; white-space: pre;&quot;&gt;setStuRoll&lt;/span&gt;&amp;nbsp;updates
the&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #292929; letter-spacing: -0.05pt; line-height: 150%;&quot;&gt;&lt;span style=&quot;background-color: #fce5cd; color: #0070c1; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; letter-spacing: normal; text-align: left; text-indent: 0px; white-space: pre;&quot;&gt;stuRoll&lt;/span&gt;&amp;nbsp;value.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;jw&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: 24pt; margin: 0cm;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: white; color: #292929; letter-spacing: -0.05pt;&quot;&gt;Within
the App component, let’s create a helper method, called&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd; color: #795e26; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;updateData&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: white; color: #292929; letter-spacing: -0.05pt;&quot;&gt;&lt;strong&gt;.&amp;nbsp;&lt;/strong&gt;With this method, the input element
will set the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd; color: #0070c1; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;stuRoll&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: white; color: #292929; letter-spacing: -0.05pt;&quot;&gt;&amp;nbsp;in the hook state. How?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;jw&quot; style=&quot;background: white; line-height: 24pt; margin: 0cm;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #292929; letter-spacing: -0.05pt;&quot;&gt;This
helper will call the new&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd; color: #0070c1; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;setStuRoll&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #292929; letter-spacing: -0.05pt;&quot;&gt;&amp;nbsp;function and update the student Rollno. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;jw&quot; style=&quot;background: white; line-height: 24pt; margin: 0cm;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;ReactDemo&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;&amp;nbsp;=&amp;nbsp;()&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;[&lt;span style=&quot;color: #0070c1;&quot;&gt;stuRoll&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;setStuRoll&lt;/span&gt;]&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;useState&lt;/span&gt;(0);&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;updateData&lt;/span&gt;&amp;nbsp;=&amp;nbsp;()&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;setStuRoll&lt;/span&gt;(&lt;span style=&quot;color: #098658;&quot;&gt;10&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;console&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;log&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Updated&amp;nbsp;RollNo&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #0070c1;&quot;&gt;stuRoll&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;};&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span&gt;      &lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;Hooks&amp;nbsp;|&amp;nbsp;Function&amp;nbsp;Component&amp;nbsp;Based&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h3&amp;gt;&lt;/span&gt;RollNo:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #0070c1;&quot;&gt;stuRoll&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;button&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;onClick&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #795e26;&quot;&gt;updateData&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;Update&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;};&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;ReactDemo&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h1 style=&quot;background: white; line-height: 27pt; margin: 0cm; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpOoo_d1dIcVJdN0TVQOkHDZJs7uiWKKdCkaVcRXkOznitX8ipvUQUBwstt-cV60-ObhVUFjsozd73h4BZaX9hWfyz7VNAJxCL6ePWrHJxE66w2lTx-sYJe5eicxhXTD0iBuxu5oM0E-mN/s787/Hook+in+Functional+Component.png&quot; style=&quot;font-weight: 400; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;408&quot; data-original-width=&quot;787&quot; height=&quot;208&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpOoo_d1dIcVJdN0TVQOkHDZJs7uiWKKdCkaVcRXkOznitX8ipvUQUBwstt-cV60-ObhVUFjsozd73h4BZaX9hWfyz7VNAJxCL6ePWrHJxE66w2lTx-sYJe5eicxhXTD0iBuxu5oM0E-mN/w400-h208/Hook+in+Functional+Component.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h1&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h1 style=&quot;background: white; line-height: 27pt; margin: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #292929; font-size: medium;&quot;&gt;Comparison
to traditional class Component state&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h1&gt;&lt;p class=&quot;jw&quot; style=&quot;background: white; line-height: 24pt; margin: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #292929; font-size: medium; letter-spacing: -0.05pt;&quot;&gt;Let’s compare the App component function above with the more
traditional class component state approach:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;jw&quot; style=&quot;background: white; line-height: 24pt; margin: 0cm;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;React&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;,&amp;nbsp;{&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;Component&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;&amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;&quot;react&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #267f99;&quot;&gt;StateDemo&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;extends&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #267f99;&quot;&gt;React&lt;/span&gt;.&lt;span style=&quot;color: #267f99;&quot;&gt;Component&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;constructor&lt;/span&gt;()&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;super&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;state&lt;/span&gt;&amp;nbsp;=&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;stuRoll&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;0&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;};&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;updateData&lt;/span&gt;&amp;nbsp;=&amp;nbsp;()&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;setState&lt;/span&gt;({&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;stuRoll&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;10&lt;/span&gt;&amp;nbsp;});&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;};&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;render&lt;/span&gt;()&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;State&amp;nbsp;|&amp;nbsp;Class&amp;nbsp;Component&amp;nbsp;Based&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h3&amp;gt;&lt;/span&gt;RollNo:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;state&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;stuRoll&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;button&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;onClick&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;{this&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;updateData&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;Update&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #267f99;&quot;&gt;StateDemo&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiphg-siBReSjvv1i7G1Y4vcFuhngcgo9arAXg_6bW1f0ssK05lCS1OVipLB4aZxqvae9G4mCMVB8jC_abIybm7GcOIZ5504szhrp7kxHCpo0r2_w4xwwQnTklj1cMYt0AUhl3_XdMAolk/s787/State+in+CLass+Component.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;415&quot; data-original-width=&quot;787&quot; height=&quot;211&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiphg-siBReSjvv1i7G1Y4vcFuhngcgo9arAXg_6bW1f0ssK05lCS1OVipLB4aZxqvae9G4mCMVB8jC_abIybm7GcOIZ5504szhrp7kxHCpo0r2_w4xwwQnTklj1cMYt0AUhl3_XdMAolk/w400-h211/State+in+CLass+Component.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Take note of the differences between
this function version and the class version. It’s already much more compact and
easier to understand than the class version, yet they both do exactly the same
thing. Let’s go over the differences:&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;, serif; font-size: 13.5pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;

&lt;/p&gt;&lt;ul type=&quot;disc&quot;&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;The entire class constructor has been replaced
     by the&amp;nbsp;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #fce5cd; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: rgb(252, 229, 205); color: red;&quot;&gt;useState&lt;/span&gt;&amp;nbsp;Hook,
     which only consists of a single line.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,serif; font-size: 13.5pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Because the&amp;nbsp;&lt;span style=&quot;background: rgb(245, 242, 240);&quot;&gt;useState&lt;/span&gt;&amp;nbsp;Hook
     outputs local variables, you no longer need to use the&amp;nbsp;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #fce5cd; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: rgb(252, 229, 205); color: red;&quot;&gt;this&lt;/span&gt;&amp;nbsp;keyword to reference your
     function or state variables. Honestly, this is a major pain for most
     JavaScript developers, as it’s not always clear when you should use&amp;nbsp;&lt;span style=&quot;background: rgb(245, 242, 240);&quot;&gt;this&lt;/span&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,serif; font-size: 13.5pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;The JSX code is now cleaner as you can reference
     local state values without using&amp;nbsp;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: #fce5cd; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: rgb(252, 229, 205); color: red;&quot;&gt;this.state&lt;/span&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,serif; font-size: 13.5pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 16pt; line-height: 150%;&quot;&gt;Hook with Multiple states&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;,&amp;nbsp;{&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;useState&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;useEffect&lt;/span&gt;&amp;nbsp;}&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;ReactDemo&lt;/span&gt;&amp;nbsp;=&amp;nbsp;()&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;[&lt;span style=&quot;color: #0070c1;&quot;&gt;stuRoll&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;setStuRoll&lt;/span&gt;]&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;useState&lt;/span&gt;(&lt;span style=&quot;color: #098658;&quot;&gt;0&lt;/span&gt;);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;[&lt;span style=&quot;color: #0070c1;&quot;&gt;stuName&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;setStuName&lt;/span&gt;]&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;useState&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;---&quot;&lt;/span&gt;);&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;Update&amp;nbsp;the&amp;nbsp;data&amp;nbsp;of&amp;nbsp;the&amp;nbsp;component&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;updateData&lt;/span&gt;&amp;nbsp;=&amp;nbsp;()&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;setStuRoll&lt;/span&gt;(&lt;span style=&quot;color: #098658;&quot;&gt;10&lt;/span&gt;);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;setStuName&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Pankaj&quot;&lt;/span&gt;);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;};&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;Hooks&amp;nbsp;with&amp;nbsp;Multiple&amp;nbsp;States&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h3&amp;gt;&lt;/span&gt;RollNo:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #0070c1;&quot;&gt;stuRoll&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h3&amp;gt;&lt;/span&gt;Name:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #0070c1;&quot;&gt;stuName&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;button&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;onClick&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #795e26;&quot;&gt;updateData&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;Update&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div&gt;};&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;ReactDemo&lt;/span&gt;;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgC-s-Q86gqeWCUbBDclcNmM8ZmoO7DyxOqy8KKic2jFPtevzCISfMUPx1Ea7xSiKFPnsUbsK2EVUHQaZ2YVXivXfiGO_AnQugDwvWgS6LCzjeX8bVj-DEb8I-RTc1AEXy_bQ39hqBK8a2O/s972/Hooks+with+multiple+states.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;529&quot; data-original-width=&quot;972&quot; height=&quot;217&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgC-s-Q86gqeWCUbBDclcNmM8ZmoO7DyxOqy8KKic2jFPtevzCISfMUPx1Ea7xSiKFPnsUbsK2EVUHQaZ2YVXivXfiGO_AnQugDwvWgS6LCzjeX8bVj-DEb8I-RTc1AEXy_bQ39hqBK8a2O/w400-h217/Hooks+with+multiple+states.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/div&gt;

&lt;h3 style=&quot;line-height: 150%; margin: 0cm 0cm 11.25pt;&quot;&gt;&lt;b&gt;&lt;span color=&quot;windowtext&quot; face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;The Rules of Hooks&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;

&lt;ol start=&quot;1&quot; style=&quot;box-sizing: border-box; color: rgba(0, 0, 0, 0.8); list-style-position: outside; margin: 1.45rem; text-align: start;&quot; type=&quot;1&quot;&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;box-sizing: border-box; line-height: 150%; margin-bottom: calc(0.725rem); mso-list: l1 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Hooks
     can only be called at the Top Level, it can&#39;t be called&amp;nbsp;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;inside
     the loops or condition or nested functions&lt;/strong&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;box-sizing: border-box; line-height: 150%; margin-bottom: calc(0.725rem); mso-list: l1 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Hooks
     can only be called in the&amp;nbsp;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;React Function&lt;/strong&gt;&amp;nbsp;or&amp;nbsp;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;Custom
     Hooks&lt;/strong&gt;, never use hooks in the regular javascript function.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 style=&quot;background: white; margin-top: 0cm;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 16pt; line-height: 107%;&quot;&gt;Hooks&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span color=&quot;windowtext&quot; face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 16pt; line-height: 107%; mso-color-alt: windowtext;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 16pt; line-height: 22.8267px;&quot;&gt;Effect&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;

&lt;p style=&quot;background: white; box-sizing: border-box; font-size: 0.925rem; line-height: 18.75pt; margin: 3.75pt 0cm;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;The Hooks Effect enables us to conduct collateral effects within
the components function. The Hooks Effect will not use the lifecycle methods of
the components, and these methods exist in the class components. Hooks Effect
is similar to componentDidUpdate(), componentDidMount() lifecycle methods.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background: white; box-sizing: border-box; font-size: 0.925rem; line-height: 18.75pt; margin: 3.75pt 0cm;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;background-color: white; color: #af00db;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #001080;&quot;&gt;React&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;,&amp;nbsp;{&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #001080;&quot;&gt;useState&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;color: #001080;&quot;&gt;useEffect&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #af00db;&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-size: 14px; line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;ReactDemo&lt;/span&gt;&amp;nbsp;=&amp;nbsp;()&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;[&lt;span style=&quot;color: #0070c1;&quot;&gt;stuRoll&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;setStuRoll&lt;/span&gt;]&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;useState&lt;/span&gt;(&lt;span style=&quot;color: #098658;&quot;&gt;0&lt;/span&gt;);&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;[&lt;span style=&quot;color: #0070c1;&quot;&gt;stuName&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;setStuName&lt;/span&gt;]&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;useState&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;---&quot;&lt;/span&gt;);&lt;/div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;Similar&amp;nbsp;to&amp;nbsp;componentDidMount()&amp;nbsp;and&amp;nbsp;componentDidUpdate&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;useEffect&lt;/span&gt;(()&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;console&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;log&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Hooks&amp;nbsp;Effects&amp;nbsp;called&amp;nbsp;&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&amp;nbsp;&amp;nbsp;});&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;Update&amp;nbsp;the&amp;nbsp;data&amp;nbsp;of&amp;nbsp;the&amp;nbsp;component&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;updateData&lt;/span&gt;&amp;nbsp;=&amp;nbsp;()&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;setStuRoll&lt;/span&gt;(&lt;span style=&quot;color: #098658;&quot;&gt;10&lt;/span&gt;);&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;setStuName&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Pankaj&quot;&lt;/span&gt;);&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;};&lt;/div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;Hooks&amp;nbsp;with&amp;nbsp;UseEffect&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h3&amp;gt;&lt;/span&gt;RollNo:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #0070c1;&quot;&gt;stuRoll&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h3&amp;gt;&lt;/span&gt;Name:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #0070c1;&quot;&gt;stuName&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;button&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;onClick&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #795e26;&quot;&gt;updateData&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;Update&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;};&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;ReactDemo&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBBdU2fGBBSr3nIE084vjPwd5eszyzG8F_lwTte5NchmCkgXplPRCKGynPtQwSPZm1j8PK1NyQal1yc8FfQnnP8R6tGKXoInNW-VIzzxAxEwfRgCn-1lXJE3DPB2aXY400ETrnkfGTRMng/s1099/Hooks+with+UseEffect.png&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; margin-left: 1em; margin-right: 1em; white-space: normal;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;529&quot; data-original-width=&quot;1099&quot; height=&quot;193&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBBdU2fGBBSr3nIE084vjPwd5eszyzG8F_lwTte5NchmCkgXplPRCKGynPtQwSPZm1j8PK1NyQal1yc8FfQnnP8R6tGKXoInNW-VIzzxAxEwfRgCn-1lXJE3DPB2aXY400ETrnkfGTRMng/w400-h193/Hooks+with+UseEffect.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 0.925rem; line-height: 18.75pt; margin: 3.75pt 0cm;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;In
the above code, we invoke “&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;useEffect&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;” to inform the React to execute the
“effect” method after reddening the modifications in the DOM. As we declare the
effects in a component, the effects can use the state and props. React
implements the effects after each render. Effects may also define how to do
“clean up”.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; box-sizing: border-box; font-size: 0.925rem; line-height: 18.75pt; margin: 3.75pt 0cm;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;Side effects contain usual properties that every web application
have to conduct, like:&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; box-sizing: border-box; font-size: 0.925rem; line-height: 18.75pt; margin: 3.75pt 0cm 3.75pt 54.75pt; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;DOM
Updation&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; box-sizing: border-box; font-size: 0.925rem; line-height: 18.75pt; margin: 3.75pt 0cm 3.75pt 54.75pt; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;Consuming
and Retrieving data from an API Server.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; box-sizing: border-box; font-size: 0.925rem; line-height: 18.75pt; margin: 3.75pt 0cm 3.75pt 54.75pt; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Symbol; font-size: 10pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;Establishing
Subscription&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background: white; box-sizing: border-box; font-size: 0.925rem; line-height: 18.75pt; margin: 3.75pt 0cm 3.75pt 54.75pt; text-indent: -18pt;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;h4 style=&quot;background: white; box-sizing: border-box; line-height: 21pt; margin-top: 0cm;&quot;&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt;&quot;&gt;Side
Effects&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span color=&quot;windowtext&quot; face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; mso-color-alt: windowtext;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h4&gt;

&lt;p style=&quot;background: white; box-sizing: border-box; font-size: 0.925rem; line-height: 18.75pt; margin: 3.75pt 0cm;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;we categorize side effects into two types:&lt;/span&gt;&lt;/p&gt;

&lt;h5 style=&quot;background: white; box-sizing: border-box; break-after: auto; line-height: 22.5pt; margin-top: 0cm;&quot;&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;Effects with Cleanup&lt;/span&gt;:&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt; &lt;span style=&quot;font-weight: normal;&quot;&gt;After updating the DOM, we have to clean up some effects. For
example, when we need to establish a subscription for any explicit data source,
it is essential to clean up the memory to ensure that there is no memory leak.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;Effects without Cleanup&lt;/span&gt;:
&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; font-weight: normal;&quot;&gt;We use Effects without Cleanup in effect
that does not obstruct the browser in screen updation. Examples of Effects that
do not need cleanup are Network requests, Manual DOM mutations, etc.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/h5&gt;

&lt;/div&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/2052960424693992438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/2052960424693992438'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2021/02/react-hook.html' title='React Hooks'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpOoo_d1dIcVJdN0TVQOkHDZJs7uiWKKdCkaVcRXkOznitX8ipvUQUBwstt-cV60-ObhVUFjsozd73h4BZaX9hWfyz7VNAJxCL6ePWrHJxE66w2lTx-sYJe5eicxhXTD0iBuxu5oM0E-mN/s72-w400-h208-c/Hook+in+Functional+Component.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-7766731071231272327</id><published>2021-02-21T18:00:00.004+05:30</published><updated>2022-07-23T18:58:51.410+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="React"/><title type='text'>React Components Lifecycle</title><content type='html'>&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;We have learned so far that the React web
applications are actually a collection of independent components that run
according to the interactions made with them. Each component in React has a
life-cycle that you can monitor and change during its three main phases. There
are three phases: Mounting, Updating, and Unmounting. You can use life-cycle
methods to run a part of code at particular times in the process or
application. You can refer to the below diagram to get a visual idea of the
life-cycle methods and their interactions in each phase.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA0z5hUfkbVi23oIB8L5UBAugUNnwHezgAE_Pij5BFDZ9s8b9xp4X8h-mBlLt9G43XnSX5nmaC6vrdhhqypUxET44z4cmP_BA0ze3l2od6Rn6goluAImDunIIlI49-S4UsE1VfKj2OcuaD/s1868/Component+Life+cycle.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;909&quot; data-original-width=&quot;1868&quot; height=&quot;279&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA0z5hUfkbVi23oIB8L5UBAugUNnwHezgAE_Pij5BFDZ9s8b9xp4X8h-mBlLt9G43XnSX5nmaC6vrdhhqypUxET44z4cmP_BA0ze3l2od6Rn6goluAImDunIIlI49-S4UsE1VfKj2OcuaD/w573-h279/Component+Life+cycle.png&quot; width=&quot;573&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;Mounting&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;Mounting is the phase when the component is mounted
on the DOM and then rendered on the webpage. We call these methods in the
following order when an element is being created and inserted into the DOM:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;componentWillMount()&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;render()&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;componentDidMount()&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;!--[if !supportLists]--&gt;&lt;p&gt;&lt;/p&gt;





&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;componentWillMount(): &lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;This function is called right before we mount the
component on the DOM. So after this method executes, the component gets mounted
on the DOM. It executes this method before the first render of the React
application. So all the tasks that have to be done before the component mounts
are defined in this method.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;render(): &lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;This
function mounts the component on the browser.&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;componentDidMount(): &lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;We invoke this function right after the component
is mounted on the DOM i.e., this function gets called once after the render()
function is executed for the first time. Generally, in React applications, we
do the API calls within this method.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;Updating&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;We call the methods in this phase whenever State or
Props in a component get updated. This allows the React application to “react”
to user inputs, such as clicks and pressing keys on the keyboard, and
ultimately create a responsive web user interface. These methods are called in
the following order to carry on the update of the component:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;componentWillReceiveProps()&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;setState()&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;shouldComponentUpdate()&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;componentWillUpdate()&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;render()&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;componentDidUpdate()&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;









&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;componentWillRecieveProps(): &lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;We call This function before a component gets its
props reassigned.&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;setState(): &lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;This
function can be called explicitly at any moment. This function is used to
update the state of a component.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;shouldComponentUpdate(): &lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;This function is called before rendering a
component and tells React whether it should update the component on receiving
new props or state. It takes the new Props and new State as the arguments and
returns whether or not to re-render the component by returning either True or
False.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;componentWillUpdate(): &lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;This function is called once before the render()
function is executed after the update of State or Props.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;render(): &lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;The
component gets rendered when this function is called.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;componentDidUpdate(): &lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;This function is called once after the render()
function is executed after the update of State or Props.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;Unmounting&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;This is the last phase of the life-cycle of the
component where the component is unmounted from the DOM. This phase has only
one method:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;componentWillUnmount(): &lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;This function is called once before we remove the
component from the page and this marks the end of the life-cycle.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;Now that we are
familiar with all the life-cycle methods of React components, let us now look
at an example to see how each function is implemented in the application code:&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;DisplayCycle.js&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;DisplayChild&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;./DisplayChild&quot;&lt;/span&gt;;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #267f99;&quot;&gt;DisplayCycle&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;extends&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #267f99;&quot;&gt;React&lt;/span&gt;.&lt;span style=&quot;color: #267f99;&quot;&gt;Component&lt;/span&gt;&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;constructor&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;props&lt;/span&gt;)&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;super&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;props&lt;/span&gt;);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;state&lt;/span&gt;&amp;nbsp;=&amp;nbsp;{&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;name:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Pankaj&quot;&lt;/span&gt;&amp;nbsp;};&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;console&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;log&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Constructor&quot;&lt;/span&gt;);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;componentWillMount&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;console&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;log&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;componentWillMount&amp;nbsp;Parent&quot;&lt;/span&gt;);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;componentDidMount&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;console&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;log&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;componentDidMount&amp;nbsp;Parent&quot;&lt;/span&gt;);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;shouldComponentUpdate&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;console&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;log&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;shouldComponentUpdate&amp;nbsp;parent&quot;&lt;/span&gt;);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;componentWillUpdate&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;console&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;log&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;componentWillUpdate()&amp;nbsp;called&quot;&lt;/span&gt;);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;componentDidUpdate&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;console&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;log&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;componentDidUpdate()&amp;nbsp;called&quot;&lt;/span&gt;);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;componentWillUnmount&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;console&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;log&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;componentWillUnmount()&amp;nbsp;called&quot;&lt;/span&gt;);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;switchState&lt;/span&gt;&amp;nbsp;=&amp;nbsp;()&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;setState&lt;/span&gt;({&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;pankaj&amp;nbsp;Kapoor&quot;&lt;/span&gt;&amp;nbsp;});&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;};&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;render&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;console&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;log&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;render&amp;nbsp;Parent&quot;&lt;/span&gt;);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;input&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;text&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;value&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;{this&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;state&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;DisplayChild&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;firstname&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;{this&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;state&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;button&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;onClick&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;{this&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;switchState&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;Click&amp;nbsp;Me&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #267f99;&quot;&gt;DisplayCycle&lt;/span&gt;;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Output:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;b&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0iLg4oqIiTHggfFjUfd7eXSj3g4adO3au9bpQ6EdL0JFDEsYbdXfkfEFQkZlnUhhAKrbLwb-WivvAjRg8cdnEAIt6YIOL40sxpTCPw-qfoabJlVk2gwrz5S8Z5Kd1_UoKaDuBCqvZaaEN/s1242/Example+Life+Cycle+Image-1.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;436&quot; data-original-width=&quot;1242&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0iLg4oqIiTHggfFjUfd7eXSj3g4adO3au9bpQ6EdL0JFDEsYbdXfkfEFQkZlnUhhAKrbLwb-WivvAjRg8cdnEAIt6YIOL40sxpTCPw-qfoabJlVk2gwrz5S8Z5Kd1_UoKaDuBCqvZaaEN/w570-h200/Example+Life+Cycle+Image-1.png&quot; width=&quot;570&quot; /&gt;&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4R4-_3K4cDtQ6eJJpHmZnPImywUDvTPZcK3noi18_w1QZdEG6NVvVyQRrT80CzI18ZPdNtj98NQLm-4zcFa9zz_rR5H9gwxjoDyy8_QSzAOVVlRqw3_0A6JlbYueEt-o_jkVfPDhBP_QU/s1240/Example+Life+Cycle+Image-2.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;625&quot; data-original-width=&quot;1240&quot; height=&quot;287&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4R4-_3K4cDtQ6eJJpHmZnPImywUDvTPZcK3noi18_w1QZdEG6NVvVyQRrT80CzI18ZPdNtj98NQLm-4zcFa9zz_rR5H9gwxjoDyy8_QSzAOVVlRqw3_0A6JlbYueEt-o_jkVfPDhBP_QU/w570-h287/Example+Life+Cycle+Image-2.png&quot; width=&quot;570&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/7766731071231272327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/7766731071231272327'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2021/02/react-components-lifecycle.html' title='React Components Lifecycle'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA0z5hUfkbVi23oIB8L5UBAugUNnwHezgAE_Pij5BFDZ9s8b9xp4X8h-mBlLt9G43XnSX5nmaC6vrdhhqypUxET44z4cmP_BA0ze3l2od6Rn6goluAImDunIIlI49-S4UsE1VfKj2OcuaD/s72-w573-h279-c/Component+Life+cycle.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-8174732084487188992</id><published>2021-02-20T13:40:00.004+05:30</published><updated>2022-07-23T18:59:08.830+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="React"/><title type='text'>React State</title><content type='html'>&lt;p align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: center;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: #c00000; font-size: 14pt; line-height: 150%;&quot;&gt;Props are pieces of data passed into a child
component from the parent while state is data controlled within a component&lt;/span&gt;&lt;b style=&quot;text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; mso-font-kerning: 18.0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; margin-bottom: 12pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;What is State?&lt;/span&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background: white; font-size: 12pt; line-height: 150%;&quot;&gt;The state is an
updatable structure that is used to contain data or information about the
component. The state in a component can change over time. The change in state
over time can happen as a response to user action or system event. A component
with the state is known as stateful components. It is the heart of the react
component which determines the behavior of the component and how it will
render. They are also responsible for making a component dynamic and
interactive.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Here
is an example showing how to use state:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;,&amp;nbsp;{&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;Component&lt;/span&gt;&amp;nbsp;}&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #267f99;&quot;&gt;Test&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;extends&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #267f99;&quot;&gt;React&lt;/span&gt;.&lt;span style=&quot;color: #267f99;&quot;&gt;Component&lt;/span&gt;&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;constructor&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;super&lt;/span&gt;();&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;state&lt;/span&gt;&amp;nbsp;=&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Pankaj&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;};&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;render&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;state&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;state&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #267f99;&quot;&gt;Test&lt;/span&gt;;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span class=&quot;token&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;
&lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt;
&lt;!--[endif]--&gt;&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;line-height: 150%;&quot;&gt;Update
a component’s state&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;State
should not be modified directly, but it can be modified with a special method
called&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-theme-font: major-fareast; padding: 0cm;&quot;&gt;setState( )&lt;/span&gt;&lt;/code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;state&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;id&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;2021&quot;&lt;/span&gt;;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;wrong&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;setState&lt;/span&gt;({&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;correct&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;2021&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span class=&quot;token&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; line-height: 150%; padding: 0cm;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; text-align: left; white-space: pre;&quot;&gt;});&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; margin-bottom: 12pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 14pt; line-height: 150%;&quot;&gt;What happens when state changes? &lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;OK,
why must we use&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-theme-font: major-fareast; padding: 0cm;&quot;&gt;setState( )&lt;/span&gt;&lt;/code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;? &amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;A
change in the state happens based on user-input, triggering an event, and so
on. Also, React components (with state) are rendered based on the data in the
state. State holds the initial information. So when state changes, React gets
informed and immediately re-renders the DOM –&amp;nbsp;&lt;strong&gt;&lt;span style=&quot;border: 1pt none windowtext; padding: 0cm;&quot;&gt;not the whole DOM, but only the component with
the updated state.&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;This is one of the reasons why React is
fast.&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;And
how does React get notified? You guessed it:&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt; with&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; color: #cc0000; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-theme-font: major-fareast; padding: 0cm;&quot;&gt;&lt;b&gt;setState(
)&lt;/b&gt;&lt;/span&gt;&lt;/code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;.
The&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-theme-font: major-fareast; padding: 0cm;&quot;&gt;setState( )&lt;/span&gt;&lt;/code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;method
triggers the re-rendering process for the updated parts. React gets informed,
knows which part(s) to change, and does it quickly without re-rendering the
whole DOM.&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;In
summary, there are 2 important points we need to pay attention to when using
state:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;State
shouldn’t be modified directly – the&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-theme-font: major-fareast; padding: 0cm;&quot;&gt;setState( )&lt;/span&gt;&lt;/code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;should
be used&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;State
affects the performance of your app, and therefore it shouldn’t be used
unnecessarily&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;/p&gt;



&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #c00000; line-height: 150%;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Important: &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;Can I use state in every component?&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Another
important question you might ask about state is where exactly we can use it. In
the early days, state could only be used in&amp;nbsp;&lt;strong&gt;&lt;span style=&quot;border: 1pt none windowtext; color: #cc0000; padding: 0cm;&quot;&gt;class components&lt;/span&gt;&lt;/strong&gt;, not in
functional components.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;That’s
why functional components were also known as stateless components. However,
after the introduction of&amp;nbsp;&lt;strong&gt;&lt;span style=&quot;border: 1pt none windowtext; color: #0b5394; padding: 0cm;&quot;&gt;React
Hooks&lt;/span&gt;&lt;/strong&gt;, state can now be used both in class and functional
components.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;If
your project is not using React Hooks, then you can only use state in class
components.&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Example&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Test.js&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;div style=&quot;background-color: white; line-height: 19px; white-space: pre;&quot;&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px;&quot;&gt;&lt;div&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;,&amp;nbsp;{&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;Component&lt;/span&gt;&amp;nbsp;}&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #267f99;&quot;&gt;Test&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;extends&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #267f99;&quot;&gt;React&lt;/span&gt;.&lt;span style=&quot;color: #267f99;&quot;&gt;Component&lt;/span&gt;&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;constructor&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;super&lt;/span&gt;();&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;Define&amp;nbsp;your&amp;nbsp;state&amp;nbsp;object&amp;nbsp;here&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;state&lt;/span&gt;&amp;nbsp;=&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Pankaj&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;};&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//Event&amp;nbsp;Handler&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;upDate&lt;/span&gt;&amp;nbsp;=&amp;nbsp;()&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;setState()&amp;nbsp;that&amp;nbsp;update&amp;nbsp;state&amp;nbsp;of&amp;nbsp;component&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;setState&lt;/span&gt;({&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;10&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Sachin&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;};&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;Define&amp;nbsp;your&amp;nbsp;render&amp;nbsp;method&amp;nbsp;here&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;render&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;state&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;state&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;button&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;onClick&lt;/span&gt;=&lt;span style=&quot;color: blue;&quot;&gt;{this&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;upDate&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;Click&amp;nbsp;me&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #267f99;&quot;&gt;Test&lt;/span&gt;;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px;&quot;&gt;&lt;b style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; text-align: justify; white-space: normal;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 24px;&quot;&gt;Output:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjum_jEf9JAVvCUKygJftXk4tUClTK7uS_mPtLsfFLo04dKzGHflLqAFsBQfPkQlfHhHp8WDF8sGFblNwkybfjXQ8M91MimGPK68SnP7lQ8YnABgrtoEsK-VlFTZzoXiy-H4Zu0hLV0OLQN/s777/React+State+Example-1_A.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;538&quot; data-original-width=&quot;777&quot; height=&quot;278&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjum_jEf9JAVvCUKygJftXk4tUClTK7uS_mPtLsfFLo04dKzGHflLqAFsBQfPkQlfHhHp8WDF8sGFblNwkybfjXQ8M91MimGPK68SnP7lQ8YnABgrtoEsK-VlFTZzoXiy-H4Zu0hLV0OLQN/w400-h278/React+State+Example-1_A.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGOgUgkQYaRnC2Eh2FkFiVE0Uf9zghpj2xuszVGlubUi4vmw5flOM3MEOPVa11g6ID36Om31-dmCQXoWa1sMI7dIzwuTZWZt8gfE9KaqD2KEQv4DWv3h9PbLqvsawiVb1LNv7nEeQPDtIX/s776/React+State+Example-1_B.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;538&quot; data-original-width=&quot;776&quot; height=&quot;278&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGOgUgkQYaRnC2Eh2FkFiVE0Uf9zghpj2xuszVGlubUi4vmw5flOM3MEOPVa11g6ID36Om31-dmCQXoWa1sMI7dIzwuTZWZt8gfE9KaqD2KEQv4DWv3h9PbLqvsawiVb1LNv7nEeQPDtIX/w400-h278/React+State+Example-1_B.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; text-align: justify; white-space: normal;&quot;&gt;&lt;br /&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;b style=&quot;text-align: justify; white-space: normal;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: 12pt; line-height: 24px;&quot;&gt;&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;font-size: medium; font-weight: 400; line-height: 24px; margin-top: 12pt;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;line-height: 24px;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Differences between props and state&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;font-size: medium; font-weight: 400; line-height: 24px; margin-top: 12pt;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 1pt; line-height: 2px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;Finally, let’s recap and see the main differences between props and state:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;font-size: medium; font-weight: 400; line-height: 24px;&quot;&gt;&lt;/p&gt;&lt;ul style=&quot;font-size: medium; font-weight: 400; text-align: left;&quot;&gt;&lt;li&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 24px;&quot;&gt;Components receive data from outside with props, whereas they can create and manage their own data with state&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 24px;&quot;&gt;Props are used to pass data, whereas state is for managing data&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 24px;&quot;&gt;Data from props is read-only, and cannot be modified by a component that is receiving it from outside&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 24px;&quot;&gt;State data can be modified by its own component, but is private (cannot be accessed from outside)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 24px;&quot;&gt;Props can only be passed from parent component to child (unidirectional flow)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 24px;&quot;&gt;Modifying state should happen with the&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 24px; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-theme-font: major-fareast; padding: 0cm;&quot;&gt;setState ( )&lt;/span&gt;&lt;/code&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 24px;&quot;&gt;&amp;nbsp;method&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/8174732084487188992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/8174732084487188992'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2021/02/react-state.html' title='React State'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjum_jEf9JAVvCUKygJftXk4tUClTK7uS_mPtLsfFLo04dKzGHflLqAFsBQfPkQlfHhHp8WDF8sGFblNwkybfjXQ8M91MimGPK68SnP7lQ8YnABgrtoEsK-VlFTZzoXiy-H4Zu0hLV0OLQN/s72-w400-h278-c/React+State+Example-1_A.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-6634336849384809957</id><published>2021-02-16T12:34:00.008+05:30</published><updated>2022-07-23T18:59:22.230+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="React"/><title type='text'>React Props</title><content type='html'>&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 12pt; text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 12pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Props are an optional input, and can
be used to send data to the component. Props are a way of making components
easily and dynamically customizable. It’s important to note that props
are&amp;nbsp;&lt;b&gt;read-only&amp;nbsp;&lt;/b&gt;and that a component must&amp;nbsp;&lt;b&gt;never&lt;/b&gt;&amp;nbsp;modify
the props passed to it. This also makes them come in handy when you want to
display fixed values.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 12pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%;&quot;&gt;Now that you know about props,
make use of them in the&amp;nbsp;components that we have just created with a custom
name appended to it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 12pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%;&quot;&gt;Make changes to the code between
the script tags in your&amp;nbsp;&lt;b&gt;&lt;i&gt;App.js&lt;/i&gt;&lt;/b&gt;&lt;i&gt; &amp;nbsp;&lt;/i&gt;document to make
it look like this:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;MyComponent1&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;./MyComponent1&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;MyComponent2&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;./MyComponent2&quot;&lt;/span&gt;;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;App&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;MyComponent1&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Beta-Labs&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;MyComponent2&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Beta-Labs&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;;&lt;/div&gt;&lt;/div&gt;&lt;p class=&quot;jj&quot; style=&quot;background: white; line-height: 24pt; margin: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;jj&quot; style=&quot;background: white; line-height: 24pt; margin: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222;&quot;&gt;This renders
the text&amp;nbsp;&lt;b&gt;“Beta-Labs”&lt;/b&gt;&amp;nbsp;to the screen. Go ahead and play around
with this by switching out the name for yours. Using props added some new
syntax to your app. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;jj&quot; style=&quot;background: white; line-height: 24pt; margin: 0cm;&quot;&gt;&lt;span face=&quot;&amp;quot;Calibri&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;jj&quot; style=&quot;background: white; line-height: 200%; margin-bottom: 12.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 12pt;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 14pt; line-height: 200%;&quot;&gt;Using
Props with Function Components&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;jj&quot; style=&quot;background: white; line-height: 200%; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 36pt; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18pt;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #222222; text-indent: -18pt;&quot;&gt;1.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #222222; text-indent: -18pt;&quot;&gt;An&amp;nbsp;&lt;b&gt;argument&lt;/b&gt;&amp;nbsp;(&lt;b&gt;props&lt;/b&gt;) is passed to the
functional component. Recall that since a single argument is being passed to
function. Passing this argument lets the component know to expect some data to
be passed to it.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;jj&quot; style=&quot;background: white; line-height: 200%; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 36pt; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18pt;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #222222; text-indent: -18pt;&quot;&gt;2.&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #222222; text-indent: -18pt;&quot;&gt;Within&amp;nbsp;&lt;b&gt;MyComponent1.jsx&lt;/b&gt;, the name you want rendered
to the screen is passed in by specifying&amp;nbsp;&lt;b&gt;{props.propValue}&lt;/b&gt;&amp;nbsp;within
the component’s tag.&lt;/span&gt;&lt;!--[if !supportLists]--&gt;&lt;/p&gt;&lt;p class=&quot;jj&quot; style=&quot;background: white; line-height: 200%; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 36pt; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18pt;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #222222; text-indent: -18pt;&quot;&gt;3.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #222222; text-indent: -18pt;&quot;&gt;In the&amp;nbsp;h3&amp;nbsp;tag,&amp;nbsp;{}&amp;nbsp;are used to print the name
that is added to the props object when it’s passed in via the component’s tag.
Notice that the name attribute is accessed using the dot syntax.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;jj&quot; style=&quot;background: white; line-height: 24pt; margin: 0cm;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #222222; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;jj&quot; style=&quot;background: white; line-height: 24pt; margin: 0cm;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #222222; text-align: justify;&quot;&gt;There is no
limit to how many&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;color: #222222; font-family: Arial, sans-serif; text-align: justify;&quot;&gt;props&lt;/i&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #222222; text-align: justify;&quot;&gt;&amp;nbsp;can be supplied to a component. Now
Make changes to the code of MyComponent1.jsx to pass props to the class
component:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;jj&quot; style=&quot;background: white; line-height: 150%; margin: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;jj&quot; style=&quot;background: white; line-height: 150%; margin: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #222222;&quot;&gt;&lt;b&gt;MyComponent1.js&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;jj&quot; style=&quot;background: white; line-height: 150%; margin: 0cm; text-align: justify;&quot;&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 10.5pt; text-align: left;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;MyComponent1&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;props&lt;/span&gt;)&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;This&amp;nbsp;is&amp;nbsp;Function&amp;nbsp;Component&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h3&amp;gt;&lt;/span&gt;created&amp;nbsp;by:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;props&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;MyComponent1&lt;/span&gt;;&lt;/div&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;jj&quot; style=&quot;background: white; line-height: 24pt; margin: 0cm;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 14pt;&quot;&gt;Using
Props with Class Components&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;jj&quot; style=&quot;background: white; line-height: 24pt; margin: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222;&quot;&gt;Adding props
to class components is a very similar process to the one used in the functional
component above. There are three notable changes:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;jj&quot; style=&quot;background: white; line-height: 24pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 36pt; mso-list: l1 level1 lfo2; text-align: justify; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; mso-fareast-font-family: Arial;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;1.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222;&quot;&gt;Props is not passed as an argument to the class&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;jj&quot; style=&quot;background: white; line-height: 24pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 36pt; mso-list: l1 level1 lfo2; text-align: justify; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; mso-fareast-font-family: Arial;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;2.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222;&quot;&gt;The&amp;nbsp;&lt;b&gt;name&lt;/b&gt;&amp;nbsp;attribute is accessed using&amp;nbsp;&lt;b&gt;this.props.name&lt;/b&gt;&amp;nbsp;instead
of&amp;nbsp;&lt;b&gt;props.name&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;jj&quot; style=&quot;background: white; line-height: 24pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 0cm 36pt; mso-list: l1 level1 lfo2; text-align: justify; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; mso-fareast-font-family: Arial;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;3.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222;&quot;&gt;To pass props to the class component, We just define the normal
constructor function (which receives a&amp;nbsp;props&amp;nbsp;object) and call
the&amp;nbsp;super&amp;nbsp;method to honour the inheritance of the component.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;jj&quot; style=&quot;background: white; line-height: 24pt; margin: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222;&quot;&gt;Now Make
changes to the code of MyComponent2.jsx to pass props to the class component:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;jj&quot; style=&quot;background: white; line-height: 24pt; margin: 0cm; text-align: justify;&quot;&gt;&lt;b style=&quot;color: #222222; font-family: Arial, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;jj&quot; style=&quot;background: white; line-height: 24pt; margin: 0cm; text-align: justify;&quot;&gt;&lt;b style=&quot;color: #222222; font-family: Arial, sans-serif;&quot;&gt;MyComponent2.js&lt;/b&gt;&lt;/p&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #267f99;&quot;&gt;MyComponent2&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;extends&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #267f99;&quot;&gt;React&lt;/span&gt;.&lt;span style=&quot;color: #267f99;&quot;&gt;Component&lt;/span&gt;&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;constructor&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;props&lt;/span&gt;)&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;super&lt;/span&gt;(&lt;span style=&quot;color: #001080;&quot;&gt;props&lt;/span&gt;);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;render&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;This&amp;nbsp;is&amp;nbsp;Class&amp;nbsp;Component&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h3&amp;gt;&lt;/span&gt;created&amp;nbsp;By:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #0070c1;&quot;&gt;props&lt;/span&gt;.&lt;span style=&quot;color: #001080;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #267f99;&quot;&gt;MyComponent2&lt;/span&gt;;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhSryRH_FTEw0N0dogFfS7S6z4fGNvPREcGExrf6xEMy1oAJaqkDeu_SF7Q_XwELCfSVgfbSw59NQCB9MrdC96Ldjdm0QRYoM6wdOnQwZsqs-dAwexNfPooIjawp_r7n4YSJZTHjPDIXnk/s1000/p1.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;654&quot; data-original-width=&quot;1000&quot; height=&quot;366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhSryRH_FTEw0N0dogFfS7S6z4fGNvPREcGExrf6xEMy1oAJaqkDeu_SF7Q_XwELCfSVgfbSw59NQCB9MrdC96Ldjdm0QRYoM6wdOnQwZsqs-dAwexNfPooIjawp_r7n4YSJZTHjPDIXnk/w561-h366/p1.png&quot; width=&quot;561&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/6634336849384809957'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/6634336849384809957'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2021/02/reactjs-props.html' title='React Props'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhSryRH_FTEw0N0dogFfS7S6z4fGNvPREcGExrf6xEMy1oAJaqkDeu_SF7Q_XwELCfSVgfbSw59NQCB9MrdC96Ldjdm0QRYoM6wdOnQwZsqs-dAwexNfPooIjawp_r7n4YSJZTHjPDIXnk/s72-w561-h366-c/p1.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-4254136471886818474</id><published>2021-02-15T14:51:00.005+05:30</published><updated>2022-02-19T21:35:39.393+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="React"/><title type='text'>React Fragment</title><content type='html'>&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;We know that
we make use of the render method inside a component whenever we want to render
something to the screen. We may render a single element or multiple elements,
though rendering multiple elements will require a&amp;nbsp;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;‘div’&lt;/span&gt;&lt;/b&gt;&amp;nbsp;tag around the content as the render method
will only render a single root node inside it at a time.&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;var(--font-din)&amp;quot;, serif&quot; style=&quot;font-size: 13pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 0cm; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; padding: 0cm;&quot;&gt;Example:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;Create a React
app and edit the&amp;nbsp;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;App.js&amp;nbsp;&lt;/span&gt;&lt;/b&gt;file from the src
folder as:&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 0cm; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;var(--font-din)&amp;quot;,serif&quot; style=&quot;border: 1pt none windowtext; color: #40424e; font-size: 13pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;Extraneous&amp;nbsp;div&amp;nbsp;element&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd; color: maroon;&quot;&gt;&amp;lt;div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Importance&amp;nbsp;of&amp;nbsp;React&amp;nbsp;Fragment&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;Fragments&amp;nbsp;let&amp;nbsp;you&amp;nbsp;group&amp;nbsp;a&amp;nbsp;list&amp;nbsp;of&amp;nbsp;children&amp;nbsp;without&amp;nbsp;adding&amp;nbsp;extra&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;nodes&amp;nbsp;&amp;nbsp;to&amp;nbsp;the&amp;nbsp;DOM.&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd; color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;;&lt;/div&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; color: #40424e; font-size: 13pt; padding: 0cm;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Output:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;var(--font-din)&amp;quot;,serif&quot; style=&quot;border: 1pt none windowtext; color: #40424e; font-size: 13pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgosNpzbMOi3w27lKvy6GaLAnlpZuo_D2rRUIu4neLE2zr2fllPP-uGlCqNjDSpATVI6oYLyGJdYPC_E-4mnGREzcUmIh9yEP24epk9IcPNfrIG9kCjNVClTmyPEazcyH836A5tXelY1FE5/s904/f2.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;388&quot; data-original-width=&quot;904&quot; height=&quot;171&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgosNpzbMOi3w27lKvy6GaLAnlpZuo_D2rRUIu4neLE2zr2fllPP-uGlCqNjDSpATVI6oYLyGJdYPC_E-4mnGREzcUmIh9yEP24epk9IcPNfrIG9kCjNVClTmyPEazcyH836A5tXelY1FE5/w400-h171/f2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;b style=&quot;text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;Reason to use
Fragments:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;As we saw in
the above code when we are trying to render more than one root element we have
to put the entire content inside the ‘div’ tag which is not loved by many
developers. So in React 16.2 version,&amp;nbsp;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Fragments&lt;/span&gt;&lt;/b&gt;&amp;nbsp;were
introduced, and we use them instead of the extraneous ‘div’ tag.&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;Syntax:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: maroon; font-family: arial; font-size: 14px; text-align: left; white-space: pre;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99; font-family: arial; font-size: 14px; text-align: left; white-space: pre;&quot;&gt;React.Fragment&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: arial; font-size: 14px; text-align: left; white-space: pre;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: white; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;Child-1&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;&amp;nbsp;Child-2&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;React.Fragment&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;&lt;b style=&quot;text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; padding: 0cm;&quot;&gt;Example:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; text-align: justify;&quot;&gt;&amp;nbsp;Open&amp;nbsp;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;App.js&amp;nbsp;&lt;/span&gt;&lt;/b&gt;and replace the code
with the below code.&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;Simple&amp;nbsp;rendering&amp;nbsp;with&amp;nbsp;fragment&amp;nbsp;syntax&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;React.Fragment&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Importance&amp;nbsp;of&amp;nbsp;React&amp;nbsp;Fragment&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Fragments&amp;nbsp;let&amp;nbsp;you&amp;nbsp;group&amp;nbsp;a&amp;nbsp;list&amp;nbsp;of&amp;nbsp;children&amp;nbsp;without&amp;nbsp;adding&amp;nbsp;extra&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;nodes&amp;nbsp;to&amp;nbsp;the&amp;nbsp;DOM.&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #267f99;&quot;&gt;React.Fragment&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;;&lt;/div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; padding: 0cm;&quot;&gt;Output:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; text-align: center; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;var(--font-din)&amp;quot;,serif&quot; style=&quot;color: #40424e; font-size: 13pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7OBpz0Aa9vSjD4aBxjcu5QnHPaieZD1s3j2iwjb4CAq1b0BJM1TTixbzLCX7BgyPJIjTr-B_jidWPf7MYepeeyAfNyEoc6GXCA1IvqII3C5AlyYjHD0hg8T4C8c0_vJT2nNv5X6orE6An/s1025/f4.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;375&quot; data-original-width=&quot;1025&quot; height=&quot;146&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7OBpz0Aa9vSjD4aBxjcu5QnHPaieZD1s3j2iwjb4CAq1b0BJM1TTixbzLCX7BgyPJIjTr-B_jidWPf7MYepeeyAfNyEoc6GXCA1IvqII3C5AlyYjHD0hg8T4C8c0_vJT2nNv5X6orE6An/w400-h146/f4.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;Shorthand&amp;nbsp;Fragment:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;The output of the first code and the code
above is the same but the main reason for using is that it is a tiny bit faster
when compared to the one with the ‘div’ tag inside it, as we didn’t create any
DOM node. Also, it takes less memory. Another shorthand also exists for the
above method in which we make use of ‘&amp;lt;&amp;gt;’ and ‘&amp;lt;/&amp;gt;’ instead of the
‘React.Fragment’.&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;Note:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;The shorthand syntax does not accept key attributes
in that case you have to use the &amp;lt;React.Fragments&amp;gt; tag.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;Syntax:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;Child-1&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;&amp;nbsp;Child-2&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/&amp;gt;&lt;/span&gt;;&lt;/div&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 0cm; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; padding: 0cm;&quot;&gt;Example:&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;Open&amp;nbsp;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;App.js&amp;nbsp;&lt;/span&gt;&lt;/b&gt;and replace the code with the below code.&lt;br /&gt;
&lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt;
&lt;!--[endif]--&gt;&lt;/span&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #273239; font-size: 24pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;Simple&amp;nbsp;rendering&amp;nbsp;with&amp;nbsp;fragment&amp;nbsp;syntax&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd; color: maroon;&quot;&gt;&amp;lt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Importance&amp;nbsp;of&amp;nbsp;React&amp;nbsp;Fragment&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Fragments&amp;nbsp;let&amp;nbsp;you&amp;nbsp;group&amp;nbsp;a&amp;nbsp;list&amp;nbsp;of&amp;nbsp;children&amp;nbsp;without&amp;nbsp;adding&amp;nbsp;extra&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;nodes&amp;nbsp;to the&amp;nbsp;DOM.&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd; color: maroon;&quot;&gt;&amp;lt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;;&lt;/div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/4254136471886818474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/4254136471886818474'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2021/02/reactjs-fragment.html' title='React Fragment'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgosNpzbMOi3w27lKvy6GaLAnlpZuo_D2rRUIu4neLE2zr2fllPP-uGlCqNjDSpATVI6oYLyGJdYPC_E-4mnGREzcUmIh9yEP24epk9IcPNfrIG9kCjNVClTmyPEazcyH836A5tXelY1FE5/s72-w400-h171-c/f2.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-4604704474782734921</id><published>2021-02-13T12:55:00.006+05:30</published><updated>2022-07-23T18:59:37.354+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="React"/><title type='text'>React Components</title><content type='html'>&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Components are the building
blocks of any React app and a typical React app will have many of these. Simply
put, a component is a JavaScript class or function that optionally accepts
inputs i.e., properties(props) and returns a React element that describes how a
section of the UI (User Interface) should appear.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Every
React component have their own structure, methods as well as APIs. They can be
reusable as per your need. For better understanding, consider the entire UI as
a tree. Here, the root is the starting component, and each of the other pieces
becomes branches, which are further divided into sub-branches.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfEj2-mxTJhGj3VrV7jZ2oOfmu_wosdYHKQHhQ3Mbew1VkrDIvbNQXS_x2mJz7sfaL5il0FejMT0fVg3LJKjqKi1Y0kEneftaWI7CPJgHr86UGte_W6MZwWJWAM_4UfVmO619gteEq_H2f/s626/c3.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;370&quot; data-original-width=&quot;626&quot; height=&quot;236&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfEj2-mxTJhGj3VrV7jZ2oOfmu_wosdYHKQHhQ3Mbew1VkrDIvbNQXS_x2mJz7sfaL5il0FejMT0fVg3LJKjqKi1Y0kEneftaWI7CPJgHr86UGte_W6MZwWJWAM_4UfVmO619gteEq_H2f/w400-h236/c3.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;In ReactJS, we have mainly two types of
components. They are&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;ol start=&quot;1&quot; style=&quot;margin-top: 0cm;&quot; type=&quot;1&quot;&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Functional Components&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Class Components&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p class=&quot;jj&quot; style=&quot;background: white; line-height: 24pt; margin-bottom: 12.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 12pt;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Calibri&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 14pt; mso-ascii-theme-font: minor-latin; mso-bidi-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;jj&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 12.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 12pt; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 14pt; line-height: 150%;&quot;&gt;Function Component&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;A function component&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;is the simplest form of a React
component. It is a simple function with a simple syntax.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;MyComponent1.js&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;React&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&quot;react&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 10.5pt;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 10.5pt;&quot;&gt;MyComponent1&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 10.5pt;&quot;&gt;props&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;)&amp;nbsp;{&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;This&amp;nbsp;is&amp;nbsp;Function&amp;nbsp;Component&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;export&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;default&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;MyComponent1&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;We have created a function called&amp;nbsp;MyComponent1
that returned h1 tag as shown above. The name of the function acts as an
element, as shown below:&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;The Component&amp;nbsp;MyComponent1 is used
as an Html tag, i.e.,&amp;nbsp;&lt;b&gt;&amp;lt; MyComponent1 /&amp;gt;&amp;nbsp;&lt;/b&gt;and same is exported
using export.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;Let us now use this component in index.js
file as shown below:&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;app.js&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;MyComponent1&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&quot;./MyComponent1&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 10.5pt;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 10.5pt;&quot;&gt;App&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;()&amp;nbsp;{&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;(&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;div&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;className&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&quot;App&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;MyComponent1&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;export&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;default&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;App&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 107%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Here is the output in the browser:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXPVf9QexrSf_OblP5g-si8F1L-TOdLLVDtzANG6QorwRWBwtadPAQ_oC0Robu_SuvenTkzPEwogSBj2p0HzZ2_VjP_fvGrap4uBTXygSodsKKw8WQKYSI8YFHeXmBUHHeKvXV_jMHqNgX/s1039/c1.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;382&quot; data-original-width=&quot;1039&quot; height=&quot;148&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXPVf9QexrSf_OblP5g-si8F1L-TOdLLVDtzANG6QorwRWBwtadPAQ_oC0Robu_SuvenTkzPEwogSBj2p0HzZ2_VjP_fvGrap4uBTXygSodsKKw8WQKYSI8YFHeXmBUHHeKvXV_jMHqNgX/w400-h148/c1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;

&lt;p class=&quot;jj&quot; style=&quot;background: white; line-height: 24pt; margin-bottom: 12.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 12pt;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 14pt;&quot;&gt;Class as Component&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Class components are more complex than functional components. It
requires you to extend from React. Component and create a render function which
returns a React element. Here is a ReactJS example that uses a class as a
component.&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;MyComponent2.js&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;React&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&quot;react&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 10.5pt;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #267f99; font-family: Consolas; font-size: 10.5pt;&quot;&gt;MyComponent2&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 10.5pt;&quot;&gt;extends&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #267f99; font-family: Consolas; font-size: 10.5pt;&quot;&gt;React&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #267f99; font-family: Consolas; font-size: 10.5pt;&quot;&gt;Component&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;render&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;()&amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;This&amp;nbsp;is&amp;nbsp;Class&amp;nbsp;Component&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;export&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;default&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #267f99; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;MyComponent2&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;The Component&amp;nbsp;MyComponent2 is used
as an Html tag, i.e.,&amp;nbsp;&lt;b&gt;&amp;lt; MyComponent2 /&amp;gt;&amp;nbsp;&lt;/b&gt;and same is exported
using export. &lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;We can use MyComponent2 component in App.js file as
follows:&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;App.js&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;MyComponent1&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&quot;./MyComponent1&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;MyComponent2&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&quot;./MyComponent2&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 10.5pt;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 10.5pt;&quot;&gt;App&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;()&amp;nbsp;{&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;(&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;div&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;className&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&quot;App&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;MyComponent1&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #267f99; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;MyComponent2&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 10.5pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 10.5pt;&quot;&gt;export&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas; font-size: 10.5pt;&quot;&gt;default&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #795e26; font-family: Consolas; font-size: 10.5pt;&quot;&gt;App&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.5pt;&quot;&gt;;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; text-align: justify;&quot;&gt;The Component MyComponent2 is used as an Html tag i.e.,&amp;nbsp;&amp;lt;
MyComponent2 /&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #222222; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Here is the output of the same.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;background: white; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmlY19OyUYLQh4ISm0lL4VXYz4I7z-ws3ZhVlpfXQd_-fE5Kzkiqb8gyX5px7BGTqQkDLiE3inJpOf5c6AIZaAmvE1ecKNE9hRP8j-JAPBd39cNxp4ugjZG2wzCQ4k55PFm84cAqdKWfOz/s1039/c2.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;461&quot; data-original-width=&quot;1039&quot; height=&quot;178&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmlY19OyUYLQh4ISm0lL4VXYz4I7z-ws3ZhVlpfXQd_-fE5Kzkiqb8gyX5px7BGTqQkDLiE3inJpOf5c6AIZaAmvE1ecKNE9hRP8j-JAPBd39cNxp4ugjZG2wzCQ4k55PFm84cAqdKWfOz/w400-h178/c2.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;background: white; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/4604704474782734921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/4604704474782734921'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2021/02/react-components.html' title='React Components'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfEj2-mxTJhGj3VrV7jZ2oOfmu_wosdYHKQHhQ3Mbew1VkrDIvbNQXS_x2mJz7sfaL5il0FejMT0fVg3LJKjqKi1Y0kEneftaWI7CPJgHr86UGte_W6MZwWJWAM_4UfVmO619gteEq_H2f/s72-w400-h236-c/c3.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-8558989513235208111</id><published>2021-02-12T23:03:00.007+05:30</published><updated>2022-07-23T18:59:57.265+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="React"/><title type='text'>React JSX</title><content type='html'>&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;React is a declarative, efficient, and flexible
JavaScript library for building user interfaces. But instead of using regular
JavaScript, React code should be written in something called JSX.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;Let us see a sample JSX code:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0070c1; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;element&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;This&amp;nbsp;is&amp;nbsp;sample&amp;nbsp;JSX&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: transparent; font-size: 8pt; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: transparent; font-size: 8pt; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;JSX (JavaScript Extension), is a React extension
which allows writing JavaScript code that looks like HTML. In other words, JSX
is an HTML-like syntax used by React that extends ECMAScript so that&amp;nbsp;&lt;b&gt;HTML-like&lt;/b&gt;&amp;nbsp;syntax
can co-exist with JavaScript/React code. The syntax is used by&amp;nbsp;&lt;b&gt;preprocessors&lt;/b&gt;&amp;nbsp;(i.e.,
transpilers like babel) to transform HTML-like syntax into standard JavaScript
objects that a JavaScript engine will parse.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: Consolas; text-align: left;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #0070c1;&quot;&gt;element&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #267f99;&quot;&gt;React&lt;/span&gt;.&lt;span style=&quot;color: #795e26;&quot;&gt;createElement&lt;/span&gt;(&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;h1&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;null&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;This&amp;nbsp;is&amp;nbsp;sample&amp;nbsp;JSX&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;);&lt;/div&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;JSX provides you to
write HTML/XML-like structures (e.g., DOM-like tree structures) in the same
file where you write JavaScript code, then preprocessor will transform these
expressions into actual JavaScript code. Just like XML/HTML, JSX tags have a
tag name, attributes, and children.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 0cm; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-color: transparent; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; line-height: 150%; padding: 0cm;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Why JSX?&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;/p&gt;&lt;ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;It is faster than normal JavaScript as it performs
optimizations while translating to regular JavaScript.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;It makes it easier for us to create templates.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;Instead of separating the markup and logic in
separated files, React uses&amp;nbsp;&lt;i&gt;&lt;span style=&quot;border: 1pt none windowtext; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;components&lt;/span&gt;&lt;/i&gt;&amp;nbsp;for
this purpose. We will learn about components in detail in further articles.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;





&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;Using JavaScript expressions in JSX&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-language: EN-IN;&quot;&gt;In React we are allowed to use normal JavaScript
expressions with JSX. To embed any JavaScript expression in a piece of code
written in JSX we will have to wrap that expression in curly braces &lt;b&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;{}.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;var(--font-din)&amp;quot;, serif&quot; style=&quot;background-color: white; color: #40424e; font-size: 13pt; text-align: left;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 0cm; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;Consider the
below program, written in the&amp;nbsp;app.js&amp;nbsp;file:&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;var(--font-din)&amp;quot;,serif&quot; style=&quot;border: 1pt none windowtext; color: #40424e; font-size: 13pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 0cm; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0070c1; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;&quot;Learner&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;App&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: maroon;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Hello&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #0070c1;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;,&amp;nbsp;Welcome&amp;nbsp;to&amp;nbsp;Beta-Labs.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: maroon;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;;&lt;/div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;Output:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;var(--font-din)&amp;quot;, serif&quot; style=&quot;color: #40424e; font-size: 13pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;var(--font-din)&amp;quot;, serif&quot; style=&quot;color: #40424e; font-size: 13pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh93hQ6IrytGPs0oSPFNoWeO4yKs6CcrFa5_ww1hqlgM3QN8ZTRaGutI27BqjN1DGelmtFgsNBpa2SJYwfdwAdDf8wxN7vFfCo-eVYJxpAcina_xuVXUHKPYBy38Igfw4mXHTyATZ34CfjP/s1044/j1.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;331&quot; data-original-width=&quot;1044&quot; height=&quot;126&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh93hQ6IrytGPs0oSPFNoWeO4yKs6CcrFa5_ww1hqlgM3QN8ZTRaGutI27BqjN1DGelmtFgsNBpa2SJYwfdwAdDf8wxN7vFfCo-eVYJxpAcina_xuVXUHKPYBy38Igfw4mXHTyATZ34CfjP/w400-h126/j1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;In the above program we have embedded the
javascript expression&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: courier;&quot;&gt;&lt;b&gt;const name = “Learner”;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;in our JSX code. We
embed the use of any JavaScript expression in JSX by wrapping them in curly
braces except if-else statements. But we can use conditional statements instead
of if-else statements in JSX. Below is the example where conditional expressing
is embedded in JSX:&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;var(--font-din)&amp;quot;, serif&quot; style=&quot;color: #40424e; font-size: 13pt; text-align: left;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&#39;react&#39;&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #0070c1;&quot;&gt;i&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #0070c1;&quot;&gt;element&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #0070c1;&quot;&gt;i&lt;/span&gt;&amp;nbsp;==&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;&amp;nbsp;?&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Hello&amp;nbsp;World!&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;False!&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;App&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #0070c1;&quot;&gt;element&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;;&lt;/div&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 0cm; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;Output:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 0cm; text-align: center; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijXk3YT58A18ZtoGmOU99FCEsQNmF7OfwkZxMWrVDhLFO6isyB8zWrCm_nGC_2j8W4lXAkBw5FPWqy3pYZOwY3NQ6XDXlQP4kpAsSYmJ98_3PSVO_vwPGMERqUX3inxqJscu2AhxX3rWzW/s1042/j2.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;313&quot; data-original-width=&quot;1042&quot; height=&quot;120&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijXk3YT58A18ZtoGmOU99FCEsQNmF7OfwkZxMWrVDhLFO6isyB8zWrCm_nGC_2j8W4lXAkBw5FPWqy3pYZOwY3NQ6XDXlQP4kpAsSYmJ98_3PSVO_vwPGMERqUX3inxqJscu2AhxX3rWzW/w400-h120/j2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 7.5pt; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;var(--font-din)&amp;quot;,serif&quot; style=&quot;color: #40424e; font-size: 13pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; mso-no-proof: yes;&quot;&gt;&lt;v:shape id=&quot;Picture_x0020_6&quot; o:spid=&quot;_x0000_i1027&quot; style=&quot;height: 115pt; mso-wrap-style: square; visibility: visible; width: 383.5pt;&quot; type=&quot;#_x0000_t75&quot;&gt;
 &lt;v:imagedata o:title=&quot;&quot; src=&quot;file:///C:/Users/panka/AppData/Local/Temp/msohtmlclip1/01/clip_image002.png&quot;&gt;
&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;var(--font-din)&amp;quot;,serif&quot; style=&quot;color: #40424e; font-size: 13pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;In the above example, the variable i is checked if
for the value 1. As it equals 1 so the string ‘Hello World!’ is returned to the
JSX code. If we modify the value of the variable i then the string ‘False’ will
be returned.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #40424e; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;Wrapping elements
or Children in JSX&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Consider a
situation where you want to render multiple tags at a time. To do this we need
to wrap all of this tag under a parent tag and then render this parent element
to the HTML. All the sub-tags are called child tags or children of this parent
element.&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;Notice in the
below example how we have wrapped&lt;b&gt; ol,&lt;/b&gt; and&lt;b&gt; li &lt;/b&gt;tags under a single div element
and rendered them to HTML:&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #0070c1;&quot;&gt;element&lt;/span&gt;&amp;nbsp;=&amp;nbsp;(&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;li&amp;gt;&lt;/span&gt;HTML5&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;li&amp;gt;&lt;/span&gt;Css3&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;li&amp;gt;&lt;/span&gt;JavaScript&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;li&amp;gt;&lt;/span&gt;MongoDB&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;li&amp;gt;&lt;/span&gt;ReactJS&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;);&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;App&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;At&amp;nbsp;Beta&amp;nbsp;Labs&amp;nbsp;You&amp;nbsp;will&amp;nbsp;Learn:&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #0070c1;&quot;&gt;element&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;b&gt;Output:&lt;/b&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;var(--font-din)&amp;quot;, serif&quot; style=&quot;color: #40424e; font-size: 13pt; text-align: center;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 7.5pt; text-align: center; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;var(--font-din)&amp;quot;,serif&quot; style=&quot;color: #40424e; font-size: 13pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6JANIfJMm8G_VjpLxrY3q7jjCwSs1dYcuudaYqCRvGq107hMNRnNIF7QSajkHKlrPIgisV3ZeiqgXLcYJJZft3a9A5XXVEbGsI7SErN4-GStLT6w-0m-OohgdByvQYhBHu11Ssn8CtPyo/s883/j3.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;439&quot; data-original-width=&quot;883&quot; height=&quot;199&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6JANIfJMm8G_VjpLxrY3q7jjCwSs1dYcuudaYqCRvGq107hMNRnNIF7QSajkHKlrPIgisV3ZeiqgXLcYJJZft3a9A5XXVEbGsI7SErN4-GStLT6w-0m-OohgdByvQYhBHu11Ssn8CtPyo/w400-h199/j3.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;JSX Styling&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;line-height: 150%;&quot;&gt;React always
recommends to use&amp;nbsp;&lt;b&gt;inline&lt;/b&gt;&amp;nbsp;styles. To set inline styles, you
need to use&amp;nbsp;&lt;b&gt;camelCase&lt;/b&gt;&amp;nbsp;syntax. React automatically allows
appending&amp;nbsp;&lt;b&gt;px&lt;/b&gt;&amp;nbsp;after the number value on specific elements. The
following example shows how to use styling in the element.&lt;/span&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 0cm; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;Example&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 0cm; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #001080; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;React&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #af00db; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;&quot;react&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;const&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #0070c1;&quot;&gt;cssStyle&lt;/span&gt;&amp;nbsp;=&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;fontSize&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;24px&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;white&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;backgroundColor&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;black&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;padding&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;10px&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;500px&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;textAlign&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;center&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;borderRadius&lt;/span&gt;&lt;span style=&quot;color: #001080;&quot;&gt;:&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;10px&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;};&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;App&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: maroon;&quot;&gt;&amp;lt;h2&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #0070c1;&quot;&gt;cssStyle&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Beta-labs-Lets&amp;nbsp;Code&amp;nbsp;Together&lt;/span&gt;&lt;span style=&quot;background-color: white; color: maroon;&quot;&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;;&lt;/div&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;&lt;b style=&quot;font-family: Arial, sans-serif; font-size: 16px; text-align: justify;&quot;&gt;Output:&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiP40KkjqTooj6ar5sob4bI5q6MJYbGDrBN4UYJu6aiLStPVh4iVCnwqDAHwlKAUycvWC8PzdoiY-Gvfv_R6d4_qjjHjCdDC4RDIczA2JCfKFbGZYlphwahtEDTG6pkmNaHbr3qMjvvykW6/s877/j4.png&quot; style=&quot;font-family: &amp;quot;var(--font-din)&amp;quot;, serif; font-size: 17.3333px; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;330&quot; data-original-width=&quot;877&quot; height=&quot;150&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiP40KkjqTooj6ar5sob4bI5q6MJYbGDrBN4UYJu6aiLStPVh4iVCnwqDAHwlKAUycvWC8PzdoiY-Gvfv_R6d4_qjjHjCdDC4RDIczA2JCfKFbGZYlphwahtEDTG6pkmNaHbr3qMjvvykW6/w400-h150/j4.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 14.25pt; margin-bottom: 0cm; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;JSX Comments&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; line-height: 150%; margin: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;JSX allows us to use comments that begin with&lt;span style=&quot;color: #38761d;&quot;&gt; /* and ends with */
&lt;/span&gt;and wrapping them in curly &lt;span style=&quot;color: #cc0000;&quot;&gt;braces {}&lt;/span&gt; just like in the case of JSX expressions.
Below example shows how to use comments in JSX.&lt;/span&gt;&lt;b style=&quot;background-color: transparent; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;line-height: 150%; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;border: 1pt none windowtext; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;Example&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;div style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #001080;&quot;&gt;React&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;()&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;return&lt;/span&gt;&amp;nbsp;(&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;div&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;className&lt;/span&gt;=&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;App&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Hello&amp;nbsp;from&amp;nbsp;Beta-Labs&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;/*&amp;nbsp;This&amp;nbsp;is&amp;nbsp;a&amp;nbsp;comment&amp;nbsp;in&amp;nbsp;JSX&amp;nbsp;*/&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;);&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #af00db;&quot;&gt;export&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #af00db;&quot;&gt;default&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #795e26;&quot;&gt;App&lt;/span&gt;;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/8558989513235208111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/8558989513235208111'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2021/02/reactjs-jsx.html' title='React JSX'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh93hQ6IrytGPs0oSPFNoWeO4yKs6CcrFa5_ww1hqlgM3QN8ZTRaGutI27BqjN1DGelmtFgsNBpa2SJYwfdwAdDf8wxN7vFfCo-eVYJxpAcina_xuVXUHKPYBy38Igfw4mXHTyATZ34CfjP/s72-w400-h126-c/j1.png" height="72" width="72"/><georss:featurename>Chandigarh, India</georss:featurename><georss:point>30.7333148 76.7794179</georss:point><georss:box>-49.340358463714637 -63.8455821 90 -142.5955821</georss:box></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-2278811746380334166</id><published>2021-02-10T23:34:00.006+05:30</published><updated>2022-07-23T19:00:13.818+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="React"/><title type='text'>Create React App &amp; Folder Structure</title><content type='html'>&lt;p&gt;&lt;span style=&quot;background-color: white; color: #212121;&quot;&gt;In
this Article, you will learn how to create a simple React app.&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; box-sizing: border-box; margin: 12pt 0cm;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121;&quot;&gt;Prerequisites&lt;/span&gt;&lt;/strong&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; box-sizing: border-box; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 0cm; margin-top: 12.0pt; margin: 12pt 0cm 12pt 36pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121; mso-fareast-font-family: Arial;&quot;&gt;1.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121;&quot;&gt;Install&amp;nbsp;&lt;a href=&quot;https://www.beta-labs.in/p/resources.html&quot; style=&quot;box-sizing: border-box; cursor: pointer;&quot;&gt;&lt;span style=&quot;color: #1e88e5;&quot;&gt;Node.js
and NPM&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; box-sizing: border-box; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 0cm; margin-top: 12.0pt; margin: 12pt 0cm 12pt 36pt; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121; mso-fareast-font-family: Arial;&quot;&gt;2.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121;&quot;&gt;Install&amp;nbsp;&lt;a href=&quot;https://www.beta-labs.in/p/resources.html&quot; style=&quot;box-sizing: border-box; cursor: pointer;&quot;&gt;&lt;span style=&quot;color: #1e88e5;&quot;&gt;Visual
Studio Code&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; box-sizing: border-box; margin: 12pt 0cm;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121;&quot;&gt;Create React app&lt;/span&gt;&lt;/strong&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; box-sizing: border-box; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 0cm; margin-top: 12.0pt; margin: 12pt 0cm 12pt 36pt; mso-list: l0 level1 lfo2; tab-stops: list 36.0pt; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121; mso-fareast-font-family: Arial;&quot;&gt;1.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121;&quot;&gt;We will use&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;create-React-app&lt;/em&gt;&amp;nbsp;NPX tool
to create a simple React app.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; box-sizing: border-box; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 0cm; margin-top: 12.0pt; margin: 12pt 0cm 12pt 36pt; mso-list: l0 level1 lfo2; tab-stops: list 36.0pt; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121; mso-fareast-font-family: Arial;&quot;&gt;2.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121;&quot;&gt;Open Node.js command prompt.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; box-sizing: border-box; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 0cm; margin-top: 12.0pt; margin: 12pt 0cm 12pt 36pt; mso-list: l0 level1 lfo2; tab-stops: list 36.0pt; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121; mso-fareast-font-family: Arial;&quot;&gt;3.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121;&quot;&gt;Navigate to the respective folder, where you want to create
React app.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; box-sizing: border-box; line-height: 150%; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 0cm; margin-top: 12.0pt; margin: 12pt 0cm 12pt 36pt; mso-list: l0 level1 lfo2; tab-stops: list 36.0pt; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121; mso-fareast-font-family: Arial;&quot;&gt;4.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121;&quot;&gt;Type the command given below in a console to install&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;create-React-app&lt;/em&gt;&amp;nbsp;using
NPX tool.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; box-sizing: border-box; line-height: 150%; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 0cm; margin-top: 12.0pt; margin: 12pt 0cm 12pt 36pt;&quot;&gt;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #0070c0; font-size: 14pt; line-height: 150%;&quot;&gt;npx create-react-app myblog&lt;/span&gt;&lt;/em&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background: white; box-sizing: border-box; line-height: 150%; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 0cm; margin-top: 12.0pt; margin: 12pt 0cm 12pt 36pt;&quot;&gt;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #0070c0; font-size: 14pt; line-height: 150%;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRIZb1rAjqlEF7D0L2D1F2aZcN1EbJa1smHgYGFkuIBH_FW35nW1kcEEHMEIL5pp73QCalR_HFsSCMcdWZ09i0aRgS__EcOfhHrcicspgjC-emIgp9YdCeRPd9AsGhngkULuFfCFRLzPvW/s1434/pic4.png&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; font-style: normal; margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;888&quot; data-original-width=&quot;1434&quot; height=&quot;340&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRIZb1rAjqlEF7D0L2D1F2aZcN1EbJa1smHgYGFkuIBH_FW35nW1kcEEHMEIL5pp73QCalR_HFsSCMcdWZ09i0aRgS__EcOfhHrcicspgjC-emIgp9YdCeRPd9AsGhngkULuFfCFRLzPvW/w549-h340/pic4.png&quot; width=&quot;549&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; box-sizing: border-box; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 0cm; margin-top: 12.0pt; margin: 12pt 0cm 12pt 36pt; mso-list: l0 level1 lfo2; tab-stops: list 36.0pt; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121; mso-fareast-font-family: Arial;&quot;&gt;5.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;&lt;span style=&quot;color: #212121;&quot;&gt;Navigate to the&lt;/span&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt; &lt;/span&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;myblog&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #212121;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #212121;&quot;&gt;folder.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; box-sizing: border-box; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 0cm; margin-top: 12.0pt; margin: 12pt 0cm 12pt 36pt; mso-list: l0 level1 lfo2; tab-stops: list 36.0pt; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121; mso-fareast-font-family: Arial;&quot;&gt;6.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;&lt;span style=&quot;color: #212121;&quot;&gt;Type the command &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;code .&lt;/span&gt;&lt;/b&gt;&lt;i style=&quot;color: #212121;&quot;&gt; &lt;/i&gt;&lt;span style=&quot;color: #212121;&quot;&gt;in a console to open the app in
Visual Studio code.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background: white; box-sizing: border-box; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 0cm; margin-top: 12.0pt; margin: 12pt 0cm 12pt 36pt;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121;&quot;&gt;
&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; box-sizing: border-box; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 0cm; margin-top: 12.0pt; margin: 12pt 0cm 12pt 36pt; mso-list: l0 level1 lfo2; tab-stops: list 36.0pt; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121; mso-fareast-font-family: Arial;&quot;&gt;7.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121;&quot;&gt;React app will have the folder structure given below.&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;
&lt;br /&gt;&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieXGqAyTO5iMdSTPGyqMmmn1AIs_5Zgys59WPrW7WyqzakLhpxzT3L2mWcGUdurk7hhNftgaUjxDzhtw4FiDZvrTBcF_M3cMSaxybuJ_z3471MAPRf4lcvNOK6tVdvM0XssK5fys0d27QK/s1920/pic6.png&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center; text-indent: 0px;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1020&quot; data-original-width=&quot;1920&quot; height=&quot;294&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieXGqAyTO5iMdSTPGyqMmmn1AIs_5Zgys59WPrW7WyqzakLhpxzT3L2mWcGUdurk7hhNftgaUjxDzhtw4FiDZvrTBcF_M3cMSaxybuJ_z3471MAPRf4lcvNOK6tVdvM0XssK5fys0d27QK/w553-h294/pic6.png&quot; width=&quot;553&quot; /&gt;&lt;/a&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121;&quot;&gt;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; box-sizing: border-box; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 0cm; margin-top: 12.0pt; margin: 12pt 0cm 12pt 36pt; mso-list: l0 level1 lfo2; tab-stops: list 36.0pt; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121; mso-fareast-font-family: Arial;&quot;&gt;8.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121;&quot;&gt;Type the command given below in a console to launch React app in
the Browser.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;background: white; box-sizing: border-box; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 0cm; margin-top: 12.0pt; margin: 12pt 0cm 12pt 36pt; text-indent: 36pt;&quot;&gt;&lt;em&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #0070c0; font-size: 14pt;&quot;&gt;npm start&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiI1DoWR-_GKFvTTAx8ZqgVz8Oks6GLMZ0U-S-FH7SPudMLi3rjq1oi-dYHn9_ZpipqcMHELOQbgATRB5WnCpnsYot3PbM9it4kZ-JEVE40feKwhlaKHkpzxtubmJOQDr1ihIsXuga6G7J/s1920/pic5.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1920&quot; height=&quot;309&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiI1DoWR-_GKFvTTAx8ZqgVz8Oks6GLMZ0U-S-FH7SPudMLi3rjq1oi-dYHn9_ZpipqcMHELOQbgATRB5WnCpnsYot3PbM9it4kZ-JEVE40feKwhlaKHkpzxtubmJOQDr1ihIsXuga6G7J/w549-h309/pic5.png&quot; width=&quot;549&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;In the previous section, you learned
how to install and&amp;nbsp;create a project in React. Now, whenever we create a
React project, it automatically creates a lot of files and folders. So, in this
article, I am going to explain what these files and folders are.&lt;br /&gt;
&lt;br /&gt;
When we create a React project, our application&#39;s structure looks like this.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguFZdzeToqMYITHOLtJJPieJ6Iolna86mW3efBEz_Z-8WP6M4R6ye2k809SF2iL6lJQPzFdquXuXJTg1XgJUA6VKJ2HXEB_maVF3cLl_pIeOMUVloZPeVu7EL_WP3xA6Y9SBH4bITjDxIF/s460/pic1.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;460&quot; data-original-width=&quot;297&quot; height=&quot;373&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguFZdzeToqMYITHOLtJJPieJ6Iolna86mW3efBEz_Z-8WP6M4R6ye2k809SF2iL6lJQPzFdquXuXJTg1XgJUA6VKJ2HXEB_maVF3cLl_pIeOMUVloZPeVu7EL_WP3xA6Y9SBH4bITjDxIF/w241-h373/pic1.png&quot; width=&quot;241&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;node_modules&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;The node_modules folder holds all the dependencies and sub-dependencies
of our project. We only had React, React DOM and React scripts but React
scripts have a lot of other dependencies which are present inside this folder.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Public folder&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Basically, this folder contains 3 files as we have seen.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;ul type=&quot;disc&quot;&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #212121; line-height: 150%; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;b&gt;&lt;i&gt;favicon.ico&lt;/i&gt;&amp;nbsp;-&lt;/b&gt; it is an
     icon file which contains an icon which displays on the browser.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #212121; line-height: 150%; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;i&gt;&lt;b&gt;index.html &lt;/b&gt;&lt;/i&gt;- it is an
     important file. Due to this file, the public folder, known as “root
     folder”, gets served by the web server in the end. Index.html is a single
     HTML page present in this project.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #212121; line-height: 150%; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;i&gt;&lt;b&gt;manifest.json &lt;/b&gt;&lt;/i&gt;- this file
     contains a lot of information related to our application like short_name,
     name, icons, start_url, display etc. We can also define other metadata
     about our application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;src folder&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;This folder contains actual source code for developers. This is the
place where our React application is present. We can create our own
subdirectory inside this directory. For faster rebuilds, files inside only this
folder are processed by Webpack. However, this folder already contains the
following files.&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #212121; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXMo4gAfyUOQ9Q9XdtdlVhfdWpBckc4ZQPxTsOn40WT68MKrxIgSMw3jdDDm_UI4Z5IM0CU7ame_nYLD453kGw9ZFNMk9LelYu40Yxsl5RyTTtB6qD3xXvkggfgNM3yFurL0fNezHjNlxU/s272/pic2.png&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;208&quot; data-original-width=&quot;272&quot; height=&quot;203&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXMo4gAfyUOQ9Q9XdtdlVhfdWpBckc4ZQPxTsOn40WT68MKrxIgSMw3jdDDm_UI4Z5IM0CU7ame_nYLD453kGw9ZFNMk9LelYu40Yxsl5RyTTtB6qD3xXvkggfgNM3yFurL0fNezHjNlxU/w266-h203/pic2.png&quot; width=&quot;266&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul type=&quot;disc&quot;&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #212121; line-height: 150%; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;i&gt;&lt;b&gt;App.css&amp;nbsp;&lt;/b&gt;&lt;/i&gt;- this file
     gives some CSS classes or we can say some styling which is used by App.js
     file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #212121; line-height: 150%; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;i&gt;&lt;b&gt;App.js &lt;/b&gt;&lt;/i&gt;-&amp;nbsp;App.js is a
     sample React component called “App” which we get for free when creating a
     new app.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #212121; line-height: 150%; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;i&gt;&lt;b&gt;App.test.js &lt;/b&gt;&lt;/i&gt;-&amp;nbsp;this is
     the test file which basically allows us to create the unit tests for
     different units or we can say for different components.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #212121; line-height: 150%; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;i&gt;&lt;b&gt;index.css &lt;/b&gt;&lt;/i&gt;-&amp;nbsp;it stores
     the base styling for our application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #212121; line-height: 150%; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;i&gt;&lt;b&gt;index.js &lt;/b&gt;&lt;/i&gt;-&amp;nbsp;index.js
     stores our main Render call from ReactDOM (more on that later). It imports
     our App.js component that we start with and tells React where to render it
     (remember that div with an id of root?).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #212121; line-height: 150%; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;b&gt;&lt;i&gt;logo.svg &lt;/i&gt;-&amp;nbsp;&lt;/b&gt;this is
     Scalable Vector Graphics file which contains the logo of Reactjs. By this
     file, we are able to see ReactJS logo on the browser.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #212121; line-height: 150%; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;i&gt;&lt;b&gt;registerServiceWorker.js
&lt;/b&gt;&lt;/i&gt;     -&amp;nbsp;as its name applies, it is important for registering a service
     which is generated automatically and creates Progressive Web Apps which
     are necessary for mobile React Native apps.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Package.json&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;It is a standard file found in every project. It contains the
information like the name of project, versions, dependencies etc. Whenever we
install a third party library, it automatically gets registered into this file.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;
Example - content of package.json file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYrZzHcUOA3hFtJnYdHn1GttD9AxzJzzwUBu_44hFxO5M-ZDVReljjGlYyN8QMhqCNF-VCEdJN7Hl9U4LM3r8vyr-Pf73l9YHSoNQPAYJUFNnXemSAiQWYBMcfucsouDPPdbXvppUR-Tvo/s782/pic3.png&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;760&quot; data-original-width=&quot;782&quot; height=&quot;389&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYrZzHcUOA3hFtJnYdHn1GttD9AxzJzzwUBu_44hFxO5M-ZDVReljjGlYyN8QMhqCNF-VCEdJN7Hl9U4LM3r8vyr-Pf73l9YHSoNQPAYJUFNnXemSAiQWYBMcfucsouDPPdbXvppUR-Tvo/w400-h389/pic3.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: #212121; font-size: 12pt;&quot;&gt;A point to be remembered at the time
of working with React applications is that, for the project to build, these
files must exist with exact filenames.&lt;/span&gt;&lt;/p&gt;

&lt;ol start=&quot;1&quot; type=&quot;1&quot;&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #212121; line-height: 150%; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;b&gt;public/index.html &lt;/b&gt;is the
     page template;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #212121; line-height: 150%; mso-list: l2 level1 lfo3; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;b&gt;src/index.js &lt;/b&gt;is the
     JavaScript entry point.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: #212121; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;We can delete or rename the other
files.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/2278811746380334166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/2278811746380334166'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2021/02/creare-react-app-folder-structure.html' title='Create React App &amp; Folder Structure'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRIZb1rAjqlEF7D0L2D1F2aZcN1EbJa1smHgYGFkuIBH_FW35nW1kcEEHMEIL5pp73QCalR_HFsSCMcdWZ09i0aRgS__EcOfhHrcicspgjC-emIgp9YdCeRPd9AsGhngkULuFfCFRLzPvW/s72-w549-h340-c/pic4.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-7067617908416496037</id><published>2021-02-03T23:27:00.007+05:30</published><updated>2022-07-23T19:20:06.378+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="MongoDB"/><title type='text'>MongoDB vs Mongoose</title><content type='html'>&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Mongoose is an Object Data Modelling
Library(ODM) for MongoDB and Node.js, providing a higher level of abstraction.
It is similar to the relationship between Express and Node, as Express is a
layer of abstraction over Node.js while Mongoose is a layer of abstraction over
the regular MongoDB driver.&lt;/span&gt;&lt;/p&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRHMZurVeeWrfw-PKKbNstUFKABxwXg-rbmwOudtYw6GeXhpVNDHVs01Q32RCgSqKughDnYPze4IRfEc4F-H2u_MRFCLfVFcv8DWKIn2_7n4_s8wkPuBH0W9gzjzA_43QBYZJpzUC8_Zsn/s1044/mongoose.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;532&quot; data-original-width=&quot;1044&quot; height=&quot;272&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRHMZurVeeWrfw-PKKbNstUFKABxwXg-rbmwOudtYw6GeXhpVNDHVs01Q32RCgSqKughDnYPze4IRfEc4F-H2u_MRFCLfVFcv8DWKIn2_7n4_s8wkPuBH0W9gzjzA_43QBYZJpzUC8_Zsn/w534-h272/mongoose.png&quot; width=&quot;534&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;And basically, an object data modelling
library is simply a way for us to write our JavaScript code that will interact
with the database. We use Mongoose over several other MongoDB drivers, because
of the out of box functionalities, that allows for faster and simpler
development of our applications. Some of the features that Mongoose provides us
are schemas to structure and model our data and relationship, easy data
validation, simple query APIs and much more.&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 2.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 6.0pt; margin: 6pt 0cm 2.4pt; mso-outline-level: 3; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Segoe UI Emoji&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Segoe UI Emoji&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;⭐&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Segoe UI&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt; Installing Mongoose and Connecting it to our Database&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 2.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 6.0pt; margin: 6pt 0cm 2.4pt; mso-outline-level: 3; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: transparent; font-size: 12pt; line-height: 150%;&quot;&gt;1. Create
     a new project, and use the command&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: transparent;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;npm init&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: transparent; color: red; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: transparent; font-size: 12pt; line-height: 150%;&quot;&gt;to initialize the project.&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&amp;nbsp;&amp;nbsp;npm&amp;nbsp;init&lt;/div&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 18pt; vertical-align: baseline;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrvlDW-IAuo6eHigIxY9f_bNEjfDea1cFl8gI0KKU4473r-53FP4ydCvThXcnZKBflOJvPAt-E7qflo_6a0EHO8DhBuEBqK-5kc5-1XBIlN2VnzNTlS8O5r5gVjYuDMjJIBzSZHKQRMjle/s601/mongoose+ins.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;515&quot; data-original-width=&quot;601&quot; height=&quot;343&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrvlDW-IAuo6eHigIxY9f_bNEjfDea1cFl8gI0KKU4473r-53FP4ydCvThXcnZKBflOJvPAt-E7qflo_6a0EHO8DhBuEBqK-5kc5-1XBIlN2VnzNTlS8O5r5gVjYuDMjJIBzSZHKQRMjle/w400-h343/mongoose+ins.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;

&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;2. To install Mongoose, use the command&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; color: red; font-size: 12pt; padding: 0cm;&quot;&gt;npm install
     mongoose&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;npm&amp;nbsp;install&amp;nbsp;mongoose&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 6.0pt; margin-left: 36.0pt; margin-right: 0cm; margin-top: 0cm; margin: 0cm 0cm 6pt 36pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;inherit&amp;quot;,serif; font-size: 8pt; line-height: 150%; mso-bidi-font-family: Arial; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;span style=&quot;background-color: white; font-size: 12pt;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;3. Now, let us connect our MongoDb database to
     Mongoose&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;ol start=&quot;3&quot; style=&quot;margin-top: 0cm;&quot; type=&quot;1&quot;&gt;
&lt;/ol&gt;

&lt;/div&gt;&lt;/div&gt;&lt;blockquote style=&quot;border: none; margin: 0px 0px 0px 40px; padding: 0px;&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; mso-add-space: auto; mso-list: l1 level1 lfo5; text-align: left; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: black; line-height: 150%; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;span style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; text-indent: -18pt;&quot;&gt;Create a file called&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;text-indent: -18pt;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;app.js&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; text-indent: -18pt;&quot;&gt;&amp;nbsp;and include the following code –&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;div&gt;&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; mso-add-space: auto; mso-list: l1 level1 lfo5; text-align: left; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; mso-add-space: auto; mso-list: l1 level1 lfo5; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;div&gt;&amp;nbsp;&lt;span style=&quot;color: #6a9955;&quot;&gt;//&amp;nbsp;Requiring&amp;nbsp;mongoose&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;const&lt;/span&gt;&amp;nbsp;mongoose&amp;nbsp;=&amp;nbsp;require(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;mongoose&quot;&lt;/span&gt;);&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&amp;nbsp;&lt;span style=&quot;color: #6a9955;&quot;&gt;//&amp;nbsp;Connecting&amp;nbsp;to&amp;nbsp;Database&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;mongoose.connect(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;mongodb://localhost:27017/studentDB&quot;&lt;/span&gt;);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 12pt; line-height: 150%;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Here, we
have first created an instance of mongoose and then saved our MongoDb
connection string in the Db object. Make sure that the mongo shell is running,
while you do operations on the database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: inherit, serif; font-size: 12pt; line-height: 150%;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&amp;nbsp; &amp;nbsp;b) Connecting to the database -&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 18pt; vertical-align: baseline;&quot;&gt;



&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;Include the following code -&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; mongoose&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;.connect(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;mongodb://localhost:27017/studentDB&quot;&lt;/span&gt;,&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;useNewUrlParser:&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;true&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;useUnifiedTopology:&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;true&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; useFindAndModify:&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;false&lt;/span&gt;,&lt;/div&gt;&lt;div&gt; &amp;nbsp;&amp;nbsp;})&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;.then(()&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;console.log(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Connection&amp;nbsp;Successfull...!!&quot;&lt;/span&gt;))&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;.catch(()&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;console.log(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Error,&amp;nbsp;Not&amp;nbsp;Connected&quot;&lt;/span&gt;));&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Here,&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 14pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;mongoose.connect()&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;returns a promise, we have used&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;then&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;here to receive the promise, but
we can also use async-await here.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 7pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;4. Now, run&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; color: red; font-size: 12pt; line-height: 150%; padding: 0cm;&quot;&gt;node
     app.js&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-size: 12pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;to run the app. We get the following output in
     the console –&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;div&gt; node&amp;nbsp;app.js&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 18pt; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;So, Mongoose is now successfully connected to our database.&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 2.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 6.0pt; margin: 6pt 0cm 2.4pt; mso-outline-level: 3; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Segoe UI Emoji&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; mso-bidi-font-family: &amp;quot;Segoe UI Emoji&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;⭐&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Segoe UI&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt; Mongoose Schema vs Model&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 7pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;
&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: #0a0a23; font-size: 12pt; line-height: 150%;&quot;&gt;While
Mongo is schema-less, SQL defines a schema via the table definition. A Mongoose
‘schema’ is a document data structure (or shape of the document) that is
enforced via the application layer. &lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;In Mongoose, a schema is where we model
our data, where we describe the structure of the data, the default values, the
constraints, and validation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Now, Mongoose is all about Models and a
model is like a blueprint that we use to create, query, update and delete
documents. To perform any CRUD operations, we need a Mongoose model, and to
create a model, we need a schema.&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;For instance, let us create a schema
for Student. A student will surely have a name, course, and duration.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; const&lt;/span&gt;&amp;nbsp;studentSchema&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;new&lt;/span&gt;&amp;nbsp;mongoose.Schema();&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Here, we have created an instance of
the mongoose schema, but it isn&#39;t completed yet. We need to pass in the object
of the required schema to it.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; const&lt;/span&gt;&amp;nbsp;studentSchema&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;new&lt;/span&gt;&amp;nbsp;mongoose.Schema({&lt;/div&gt;&lt;div&gt;&amp;nbsp;  &amp;nbsp;name:&amp;nbsp;String&lt;/div&gt;&lt;div&gt; &amp;nbsp;&amp;nbsp; });&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 2pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;Here, we have specified our first
attribute, or the first field for the document, name. Mongoose uses native
JavaScript datatypes, so here we can specify any data type - String, Number,
Array, Date or Boolean. This is the most basic way of describing our data. Now,
let us add more fields for this schema.&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div style=&quot;color: #d4d4d4;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; const&lt;/span&gt;&amp;nbsp;studentSchema&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;new&lt;/span&gt;&amp;nbsp;mongoose.Schema({&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4;&quot;&gt;&amp;nbsp; &amp;nbsp;name:&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4;&quot;&gt;   {&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4;&quot;&gt;   type: String,&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;   required: &lt;/span&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;true&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4;&quot;&gt;   },&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4;&quot;&gt;&amp;nbsp; &amp;nbsp;course:&amp;nbsp;String,&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4;&quot;&gt;&amp;nbsp;&amp;nbsp; duration:&amp;nbsp;Number,&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4;&quot;&gt; &amp;nbsp;&amp;nbsp;reg:&amp;nbsp;Boolean,&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4;&quot;&gt;&amp;nbsp; &amp;nbsp;date:&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;type:&amp;nbsp;Date,&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;default:&amp;nbsp;Date.now,&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4;&quot;&gt; &amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4;&quot;&gt; });&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: white; color: black; font-size: 1pt; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Note how we have made the name as
required, but the other fields need not be necessarily there except date as default,
if user not enter anything, it will be set as default.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Now, for the required attribute, we can
also pass in the error statement that we want to be displayed when we&#39;re
missing the field. We just need to pass an array to the required field, as follows
-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style=&quot;background: rgb(20, 20, 20); border: 1pt solid black; mso-border-alt: solid black .75pt; mso-element: para-border-div; padding: 12pt;&quot;&gt;

&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;const&lt;/span&gt;&amp;nbsp;studentSchema&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;new&lt;/span&gt;&amp;nbsp;mongoose.Schema({&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;name:&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;type:&amp;nbsp;String,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;required:&amp;nbsp;[&lt;span style=&quot;color: #569cd6;&quot;&gt;true&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Name&amp;nbsp;field&amp;nbsp;Missing&quot;&lt;/span&gt;],&lt;/div&gt;&lt;div&gt;    }&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;});&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: white; color: black; font-size: 2pt; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;We can also specify default values, for
instance, let&#39;s save the default value of our date as &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Date.now&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: red; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;
&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;which will store the current date and time of student admission.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 18pt; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;So, this is our very basic schema, and let&#39;s now create a model out of
it.&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; const&lt;/span&gt;&amp;nbsp;Student&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;new&lt;/span&gt;&amp;nbsp;mongoose.model(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Student&quot;&lt;/span&gt;,&amp;nbsp;studentSchema);&lt;/div&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 2.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 6.0pt; margin: 6pt 0cm 2.4pt; mso-outline-level: 3; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Segoe UI Emoji&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 6pt; mso-bidi-font-family: &amp;quot;Segoe UI Emoji&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 2.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 6.0pt; margin: 6pt 0cm 2.4pt; mso-outline-level: 3; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Segoe UI Emoji&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Segoe UI Emoji&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;📝&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Segoe UI&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 13.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt; Creating Documents -&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; text-align: justify;&quot;&gt;We use our &lt;/span&gt;&lt;b style=&quot;text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: red; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Student&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;color: red; font-size: 12pt; line-height: 150%; text-align: justify;&quot;&gt;
&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; text-align: justify;&quot;&gt;modal to create a new document, just like we create an object using
classes in Javascript.&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;To create a new student with values :&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;name:&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;pankaj&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;course:&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btech&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;duration:&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;reg:&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;true&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: white; color: black; font-size: 1pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 18pt; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;To create this as a document, include the following code -&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; const&lt;/span&gt;&amp;nbsp;stu1&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;new&lt;/span&gt;&amp;nbsp;Student({&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;name:&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;pankaj&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; course:&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btech&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; duration:&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4&lt;/span&gt;,&lt;/div&gt;&lt;div&gt; &amp;nbsp;&amp;nbsp;reg:&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;true&lt;/span&gt;,&lt;/div&gt;&lt;div&gt; });&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: white; color: black; font-size: 7pt; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;This creates a new document and stores
it to &lt;/span&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: red; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;stu1&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;. To save the document, we use
the&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;save()&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: red; font-size: 16pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;method.&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 4pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; stu1.save()&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;.then((doc)&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;console.log(doc))&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; .catch((error)&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;console.log(err));&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 0cm; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;border: 1pt none windowtext; color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;save()&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; text-align: justify;&quot;&gt;&amp;nbsp;method also returns a promise when we save the document.&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Now, run the app -&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;node app.js&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;, we get the following output in the console.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 0cm; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLhEgPweeSACLLnzntWa6vVYlJlVFKeXXayaVL-GMxgk4K_vkJQEIDZR88Qra3KFCRLAUUVh4-LiNUsrL0cSJk7DTvaEdA4bRWhScvK9ouoiFA4upXP1t97Dwm4HhS7SJ1hdu6vC-NiY9K/s534/update.png&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;310&quot; data-original-width=&quot;534&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLhEgPweeSACLLnzntWa6vVYlJlVFKeXXayaVL-GMxgk4K_vkJQEIDZR88Qra3KFCRLAUUVh4-LiNUsrL0cSJk7DTvaEdA4bRWhScvK9ouoiFA4upXP1t97Dwm4HhS7SJ1hdu6vC-NiY9K/s320/update.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;You may verify that the document is
saved, by running&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;db.students.find()&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: red; font-size: 16pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;in the mongo shell, to see all the documents in the database.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFmTVq7Vez1jAkxL6A_eUlktEThv4GaJAe9RRaRKC2eqjl5vQX58JCQU2HPyFTrZSPxQ5vG2TYqLcDOU3sYbjLjicRbD21btbkELVS2jNC1k1M2JsUny41oIzq0ALSYJ6ORNssMGkoncaP/s1888/Screenshot+2021-02-03+214225.png&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;114&quot; data-original-width=&quot;1888&quot; height=&quot;38&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFmTVq7Vez1jAkxL6A_eUlktEThv4GaJAe9RRaRKC2eqjl5vQX58JCQU2HPyFTrZSPxQ5vG2TYqLcDOU3sYbjLjicRbD21btbkELVS2jNC1k1M2JsUny41oIzq0ALSYJ6ORNssMGkoncaP/w640-h38/Screenshot+2021-02-03+214225.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 18pt; vertical-align: baseline;&quot;&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 2.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 6.0pt; margin: 6pt 0cm 2.4pt; mso-outline-level: 3; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Segoe UI Emoji&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 13.5pt; mso-bidi-font-family: &amp;quot;Segoe UI Emoji&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;📝&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Segoe UI&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 13.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt; Creating Multiple Documents
-&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 1pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 18pt; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Now, let us try to &lt;/span&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: red; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;save multiple documents&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: red; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt; &lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;to the collection -&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; const&lt;/span&gt;&amp;nbsp;stu2&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;new&lt;/span&gt;&amp;nbsp;Student({&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;name:&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;manish&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; course:&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;mba&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt; &amp;nbsp;&amp;nbsp;duration:&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;reg:&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;true&lt;/span&gt;,&lt;/div&gt;&lt;div&gt; });&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; const&lt;/span&gt;&amp;nbsp;stu3&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;new&lt;/span&gt;&amp;nbsp;Student({&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;name:&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;sachin&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; course:&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;mca&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt; &amp;nbsp;&amp;nbsp;duration:&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;reg:&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;true&lt;/span&gt;,&lt;/div&gt;&lt;div&gt; });&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; const&lt;/span&gt;&amp;nbsp;stu4&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;new&lt;/span&gt;&amp;nbsp;Student({&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;name:&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;sneha&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; course:&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;bca&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt; &amp;nbsp;&amp;nbsp;duration:&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;3&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;reg:&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;true&lt;/span&gt;,&lt;/div&gt;&lt;div&gt; });&lt;/div&gt;&lt;br /&gt;&lt;div&gt; Student.insertMany([stu2,&amp;nbsp;stu3,&amp;nbsp;stu4])&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;.then((doc)&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;console.log(doc))&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; .catch((err)&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;console.log(err));&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;background: white; color: black; font-size: 12pt; line-height: 150%;&quot;&gt;Now,
let us try to save a document in which name of the student is missing as name
is required field –&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Now, if we try to run&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;node app.js&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;, we get the following error -&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 18pt; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjx_EXbcI1lzs2uGWKxpddwjvLVx2KyU74-VMS481GRB3WgyUtpNpLN57SephgaLxZ-IZul8S5sRmy1agx9tUVRaJNlbszstfnmLXHjUolFiojejpnk0LUwTg8A9dcNmkz0FSTZ4zViLvTY/s1110/Error.png&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;129&quot; data-original-width=&quot;1110&quot; height=&quot;74&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjx_EXbcI1lzs2uGWKxpddwjvLVx2KyU74-VMS481GRB3WgyUtpNpLN57SephgaLxZ-IZul8S5sRmy1agx9tUVRaJNlbszstfnmLXHjUolFiojejpnk0LUwTg8A9dcNmkz0FSTZ4zViLvTY/w640-h74/Error.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Now, correct your data and run the command
&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;Student.insertMany()&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 16pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;to insert multiple records in the collection. app,
and we get the following output on the terminal -&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 18pt; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 10.5pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;And also from the mongo shell, we can verify that our document has been
saved -&lt;/span&gt;&lt;/p&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuilPeCtwutQ9jgdWUdPI9PgCa916ZY0sQk9Wh4_apK4U-KTGPz7R-sHDQ3sbeyeHmLBoIIsfE5VFeC3NA6AW2cjjcx8-ClhDmpjmbd1Pe0ABALKRlaC1fXhFSNlFoJOeybIWcqvK4X_k8/s1893/Multiple+Record+find.png&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;270&quot; data-original-width=&quot;1893&quot; height=&quot;93&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuilPeCtwutQ9jgdWUdPI9PgCa916ZY0sQk9Wh4_apK4U-KTGPz7R-sHDQ3sbeyeHmLBoIIsfE5VFeC3NA6AW2cjjcx8-ClhDmpjmbd1Pe0ABALKRlaC1fXhFSNlFoJOeybIWcqvK4X_k8/w640-h93/Multiple+Record+find.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 18pt; vertical-align: baseline;&quot;&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 2.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 6.0pt; margin: 6pt 0cm 2.4pt; mso-outline-level: 3; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Segoe UI Emoji&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; mso-bidi-font-family: &amp;quot;Segoe UI Emoji&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;📝&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Segoe UI&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt; Reading documents -&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; text-align: justify;&quot;&gt;We have the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1pt none windowtext; font-family: &amp;quot;Courier New&amp;quot;; font-size: 12pt; line-height: 150%; padding: 0cm; text-align: justify;&quot;&gt;find()&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 16pt; line-height: 150%; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%; text-align: justify;&quot;&gt;method to read documents from a collection. To read documents, we use
all of the methods directly on the model object.&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;For instance, to read all documents
from the Student model, include the following code:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;const&lt;/span&gt;&amp;nbsp;docs&amp;nbsp;=&amp;nbsp;Student.find()&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;.then((doc)&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;console.log(doc))&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;.catch((error)&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;console.log(err));&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 18pt; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;This gives the following output -&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 18pt; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMA7jj6y8M546KLxscKmiZEiE3v57GUqfcAq_ZSue0VBMOJzTfm_DKI-2GUoF8E3iFgrxOZvX1E14cDk9JTi81GK3rqXOp0ytdjEUrd5juEfqirAxr-NQ1o8FQNEnHfJ36DdrmvhAXt4gC/s738/find.png&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;453&quot; data-original-width=&quot;738&quot; height=&quot;245&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMA7jj6y8M546KLxscKmiZEiE3v57GUqfcAq_ZSue0VBMOJzTfm_DKI-2GUoF8E3iFgrxOZvX1E14cDk9JTi81GK3rqXOp0ytdjEUrd5juEfqirAxr-NQ1o8FQNEnHfJ36DdrmvhAXt4gC/w400-h245/find.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;To search for a particular document, we
may specify the required attributes and values and pass it as an object to
the&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;find()&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: red; font-size: 16pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;method.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;For instance, if we want to find the student
with course btech&#39;, the following code would work -&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; const&lt;/span&gt;&amp;nbsp;docs&amp;nbsp;=&amp;nbsp;Student.find({&amp;nbsp;name:&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;manish&quot;&lt;/span&gt;&amp;nbsp;})&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;.then((doc)&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;console.log(doc))&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; .catch((error)&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;console.log(err));&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 18pt; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 1pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;This gives the following output -&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 18pt; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUlKSdr7foKIqtrjJuHZzz4vGN3eOKM3GAIaT33rPxxnexHfpMszIdBbXNGkwebf0Ag4F3sXDyWMqoj-gIFDYiNCcpH7pq_4Erla7FH8ZPTFirTtKZcdLCY0PPZFHF7kC_UWRw3L4BEeVG/s541/pankaj.png&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;405&quot; data-original-width=&quot;541&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUlKSdr7foKIqtrjJuHZzz4vGN3eOKM3GAIaT33rPxxnexHfpMszIdBbXNGkwebf0Ag4F3sXDyWMqoj-gIFDYiNCcpH7pq_4Erla7FH8ZPTFirTtKZcdLCY0PPZFHF7kC_UWRw3L4BEeVG/s320/pankaj.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 2.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 6.0pt; margin: 6pt 0cm 2.4pt; mso-outline-level: 3; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Segoe UI Emoji&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 13.5pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Segoe UI Emoji&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;📝&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Segoe UI&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 13.5pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Segoe UI&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 16pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Updating documents -&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;To update a document, we need its _id
which in our case is automatically created by MongoDB.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;To update a document, we use the
method&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;findByIdAndUpdate()&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 16pt; line-height: 150%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;on the model object. The method takes in the _id as
a parameter.&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;For instance - to update the duration
of MCA, include the following code in the program -&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; const&lt;/span&gt;&amp;nbsp;docs&amp;nbsp;=&amp;nbsp;Student.findByIdAndUpdate(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;601acc5f7275a622ec3b3a03&quot;&lt;/span&gt;,&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;duration:&amp;nbsp;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;,&lt;/div&gt;&lt;div&gt; })&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;.then((doc)&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;console.log(doc))&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; .catch((err)&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;console.log(err));&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;background-color: white; color: black; font-size: 10.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Here,
&quot;5d794e71922481309c8e6883&quot; is the id of the document. We can verify
if the document has been updated using&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;db.students.find()&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 16pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;in the mongo shell.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;We get the following output -&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 18pt; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiz4tQWkD30zqAYmLggGlOAyZwuGYIbMPHfTyYVsvqBHZrZGmWK_SAjyyakJ4XprjoVRg1rE_hTpeAUnvq7J9u3AmcB7kU0F2qemfoVixkS1ZB43q7qLSZJlaoWpWzqOqoMZsd9B_2x5BqD/s707/update1.png&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;305&quot; data-original-width=&quot;707&quot; height=&quot;173&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiz4tQWkD30zqAYmLggGlOAyZwuGYIbMPHfTyYVsvqBHZrZGmWK_SAjyyakJ4XprjoVRg1rE_hTpeAUnvq7J9u3AmcB7kU0F2qemfoVixkS1ZB43q7qLSZJlaoWpWzqOqoMZsd9B_2x5BqD/w400-h173/update1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 18pt; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;The duration for course of MCA has been successfully updated.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 2.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 6.0pt; margin: 6pt 0cm 2.4pt; mso-outline-level: 3; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Segoe UI Emoji&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 16pt; line-height: 150%; mso-bidi-font-family: &amp;quot;Segoe UI Emoji&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;📝&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Segoe UI&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 16pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt; Deleting Documents -&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 0cm; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;Deleting a document through Mongoose is
very easy. We use the method&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;border: 1pt none windowtext; color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 12pt; line-height: 150%; mso-border-alt: none windowtext 0cm; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN; padding: 0cm;&quot;&gt;findByIdAndDelete&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: red; font-size: 16pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;and pass the id of the document to be deleted as the parameter -&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;For instance, if we want to delete our
first document, include the following code -&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; const&lt;/span&gt;&amp;nbsp;docs&amp;nbsp;=&amp;nbsp;Student.findByIdAndDelete(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;601acc5f7275a622ec3b3a05&quot;&lt;/span&gt;)&lt;/div&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;This deletes the document with
_id=&quot;5d794e71922481309c8e6883&quot;. We may verify the delete operation
through our mongo shell.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 150%; margin-bottom: 18pt; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; line-height: 150%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;We get the following results-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 18pt; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgl3W6mpM9OezGNWqSAxpurJELrDMuOsxAl1SPD1SmpC-ljWPgDf2xsQjku82FFVSFOsRsjtKUkjI_WbA7tCwXtnkS7ETxThe7VGKBtGB9NLMYeQV_F38o61Utm0G1kudBbj3otbXZm6lt0/s580/delete.png&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;87&quot; data-original-width=&quot;580&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgl3W6mpM9OezGNWqSAxpurJELrDMuOsxAl1SPD1SmpC-ljWPgDf2xsQjku82FFVSFOsRsjtKUkjI_WbA7tCwXtnkS7ETxThe7VGKBtGB9NLMYeQV_F38o61Utm0G1kudBbj3otbXZm6lt0/s320/delete.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 18pt; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 12pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;The document has been successfully deleted.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 18pt; vertical-align: baseline;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;And we are all done ! &lt;/span&gt;&lt;span face=&quot;&amp;quot;Segoe UI Emoji&amp;quot;,sans-serif&quot; style=&quot;color: black; font-size: 14pt; mso-bidi-font-family: &amp;quot;Segoe UI Emoji&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;🎉&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/7067617908416496037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/7067617908416496037'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2021/02/mongodb-vs-mongoose.html' title='MongoDB vs Mongoose'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRHMZurVeeWrfw-PKKbNstUFKABxwXg-rbmwOudtYw6GeXhpVNDHVs01Q32RCgSqKughDnYPze4IRfEc4F-H2u_MRFCLfVFcv8DWKIn2_7n4_s8wkPuBH0W9gzjzA_43QBYZJpzUC8_Zsn/s72-w534-h272-c/mongoose.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-1764083352017659815</id><published>2021-02-01T13:57:00.006+05:30</published><updated>2022-07-23T19:20:31.374+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="MongoDB"/><title type='text'>MongoDB Indexes</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;b&gt;Student Collection:&amp;nbsp;&lt;/b&gt;&lt;a href=&quot;https://drive.google.com/file/d/1rLNAPvHdXY9HOma6JXnhyHAsePVcM0ZG/view?usp=sharing&quot; target=&quot;_blank&quot;&gt;Download Student.json&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 19px; white-space: pre;&quot;&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;gt;&amp;nbsp;show&amp;nbsp;dbs&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;CRUD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;0.000&lt;/span&gt;GB&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;admin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;0.000&lt;/span&gt;GB&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;config&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;0.000&lt;/span&gt;GB&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;local&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;0.000&lt;/span&gt;GB&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;gt;&amp;nbsp;use&amp;nbsp;CRUD&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;switched&amp;nbsp;to&amp;nbsp;db&amp;nbsp;CRUD&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;gt;&amp;nbsp;show&amp;nbsp;collections&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;skill&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;student&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;test&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;gt;&amp;nbsp;db.student.&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;getIndexes&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;()&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;[&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;v&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;2&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;key&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;_id&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;name&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;_id_&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;ns&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;CRUD.student&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;]&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;gt;&amp;nbsp;db.student.&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;createIndex({&lt;span style=&quot;color: #cd3131;&quot;&gt;id&lt;/span&gt;:&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;},{&lt;span style=&quot;color: #cd3131;&quot;&gt;unique&lt;/span&gt;:&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;})&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;createdCollectionAutomatically&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;numIndexesBefore&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;numIndexesAfter&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;2&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;ok&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;gt;&amp;nbsp;db.student.createIndex({&lt;span style=&quot;color: #cd3131;&quot;&gt;sec&lt;/span&gt;:&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;},{&lt;span style=&quot;color: #cd3131;&quot;&gt;unique&lt;/span&gt;:&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;})&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;ok&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;0&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #0451a5;&quot;&gt;&quot;errmsg&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;:&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&quot;E11000&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;duplicate&amp;nbsp;key&amp;nbsp;error&amp;nbsp;collection&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;:&amp;nbsp;CRUD.student&amp;nbsp;index:&amp;nbsp;sec_1&amp;nbsp;dup&amp;nbsp;key:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;{&amp;nbsp;sec:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #ee0000;&quot;&gt;\&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;A&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #ee0000;&quot;&gt;\&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;}&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;code&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;11000&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;codeName&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;DuplicateKey&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;keyPattern&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;sec&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;keyValue&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;sec&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;A&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;gt;&amp;nbsp;db.student.getIndexes()&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;[&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;v&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;2&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;key&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;_id&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;name&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;_id_&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;ns&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;CRUD.student&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;v&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;2&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;unique&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;key&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0451a5;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;id&quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;name&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;id_1&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;ns&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;CRUD.student&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;]&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;gt;&amp;nbsp;db.student.find({&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;id&quot;&lt;/span&gt;:&lt;span style=&quot;color: #098658;&quot;&gt;3&lt;/span&gt;})&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;{&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;_id&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #cd3131;&quot;&gt;ObjectId(&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;601193736aed415ccc1d4bc1&quot;&lt;/span&gt;&lt;span style=&quot;color: #cd3131;&quot;&gt;)&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;name&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;kamal&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;lastName&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;sharma&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;age&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;11&lt;/span&gt;,&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #0451a5;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&quot;averageScore&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;6.4&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;id&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;3&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;sec&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;A&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;gender&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;male&quot;&lt;/span&gt;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;gt;&amp;nbsp;db.student.&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;explain()&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;.find({&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #cd3131;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #098658;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;})&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;queryPlanner&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;plannerVersion&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;namespace&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;CRUD.student&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;indexFilterSet&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;parsedQuery&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;id&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;$eq&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;3&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;queryHash&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;6DAB46EC&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;planCacheKey&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;801B9D84&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;winningPlan&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;stage&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;FETCH&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;inputStage&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;stage&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;IXSCAN&quot;&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;keyPattern&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;id&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;indexName&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;id_1&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;isMultiKey&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;multiKeyPaths&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;id&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;[&amp;nbsp;]&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;isUnique&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;isSparse&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;isPartial&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;indexVersion&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;2&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;direction&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;forward&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;indexBounds&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;id&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;[&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;[3.0,&amp;nbsp;3.0]&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;]&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;rejectedPlans&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;[&amp;nbsp;]&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;serverInfo&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;host&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;LAPTOP-7HHTVTQF&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;port&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;27017&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;version&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;4.2.2&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;gitVersion&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;a0bbbff6ada159e19298d37946ac8dc4b497eadf&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;ok&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;gt;&amp;nbsp;db.student.&lt;/span&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;explain().find({&lt;span style=&quot;color: #cd3131;&quot;&gt;age&lt;/span&gt;:&lt;span style=&quot;color: #098658;&quot;&gt;25&lt;/span&gt;})&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;queryPlanner&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;plannerVersion&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;namespace&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;CRUD.student&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;indexFilterSet&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;parsedQuery&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;age&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;$eq&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;25&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;queryHash&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;3838C5F3&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;planCacheKey&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;3838C5F3&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;winningPlan&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;stage&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;COLLSCAN&quot;&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;filter&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;age&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;$eq&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;25&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;direction&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;forward&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;rejectedPlans&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;[&amp;nbsp;]&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;serverInfo&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;host&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;LAPTOP-7HHTVTQF&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;port&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;27017&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;version&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;4.2.2&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;gitVersion&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;a0bbbff6ada159e19298d37946ac8dc4b497eadf&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;ok&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;}&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;gt;&amp;nbsp;db.student.&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;createIndex({&lt;span style=&quot;color: #cd3131;&quot;&gt;age&lt;/span&gt;:&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;},{&lt;span style=&quot;color: #cd3131;&quot;&gt;name&lt;/span&gt;:&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;myAgeIndex&quot;&lt;/span&gt;})&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;createdCollectionAutomatically&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;numIndexesBefore&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;2&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0451a5;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;numIndexesAfter&quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;3&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;ok&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;gt;&amp;nbsp;db.student.getIndexes()&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;[&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;v&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;2&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;key&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;_id&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;name&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;_id_&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;ns&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;CRUD.student&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;v&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;2&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;unique&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;key&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;id&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;name&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;id_1&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;ns&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;CRUD.student&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;v&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;2&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;key&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;age&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;name&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;myAgeIndex&quot;&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;ns&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;CRUD.student&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;]&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;gt;&amp;nbsp;db.student.insert(&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;{&lt;span style=&quot;color: #cd3131;&quot;&gt;id&lt;/span&gt;:&lt;span style=&quot;color: #098658;&quot;&gt;20&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #0451a5;&quot;&gt;&quot;name&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&quot;pankaj&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;})&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;WriteResult({&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;nInserted&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;0&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;writeError&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;code&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;11000&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #0451a5;&quot;&gt;&quot;errmsg&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;:&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&quot;E11000&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&amp;nbsp;duplicate&amp;nbsp;key&amp;nbsp;error&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;collection:&amp;nbsp;CRUD.student&amp;nbsp;index:&amp;nbsp;id_1&amp;nbsp;dup&amp;nbsp;key:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;{&amp;nbsp;id:&amp;nbsp;20.0&amp;nbsp;}&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;})&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;gt;&amp;nbsp;db.student.insert({&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;color: #cd3131;&quot;&gt;id&lt;/span&gt;:&lt;span style=&quot;color: #098658;&quot;&gt;21&lt;/span&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #0451a5;&quot;&gt;&quot;name&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&quot;pankaj&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;})&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;WriteResult({&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;nInserted&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;&amp;nbsp;})&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;gt;&amp;nbsp;db.student.insert({&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;color: #cd3131;&quot;&gt;id&lt;/span&gt;:&lt;span style=&quot;color: #098658;&quot;&gt;22&lt;/span&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #0451a5;&quot;&gt;&quot;name&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&quot;pankaj&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #cd3131;&quot;&gt;age&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #098658;&quot;&gt;31&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;})&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;WriteResult({&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;nInserted&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;&amp;nbsp;})&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;gt;&amp;nbsp;db.student.&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;dropIndex({&lt;span style=&quot;color: #cd3131;&quot;&gt;age&lt;/span&gt;:&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;})&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;{&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;nIndexesWas&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;3&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;ok&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;gt;&amp;nbsp;db.student.getIndexes()&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;[&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;v&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;2&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;key&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;_id&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;name&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;_id_&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;ns&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;CRUD.student&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;v&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;2&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;unique&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;key&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;id&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;name&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;id_1&quot;&lt;/span&gt;,&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;ns&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;CRUD.student&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;]&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;gt;&amp;nbsp;db.student&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;.dropIndexes()&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;{&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;nIndexesWas&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;2&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;msg&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;non-_id&amp;nbsp;indexes&amp;nbsp;dropped&amp;nbsp;for&amp;nbsp;collection&quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;ok&quot;&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;}&lt;/div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;

&lt;iframe allowfullscreen=&quot;true&quot; frameborder=&quot;0&quot; height=&quot;450&quot; mozallowfullscreen=&quot;true&quot; src=&quot;https://docs.google.com/presentation/d/e/2PACX-1vTHSfYt3-nT2QHxg1qqd0j54lCr1oqG8ZF9f3csAeBrdnUZ_CMIIiAmAN34nSxox3phKF2JyI4czGDU/embed?start=false&amp;amp;loop=false&amp;amp;delayms=30000&quot; webkitallowfullscreen=&quot;true&quot; width=&quot;750&quot;&gt;&lt;/iframe&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/1764083352017659815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/1764083352017659815'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2021/02/mongodb-indexes.html' title='MongoDB Indexes'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-238496937260847132</id><published>2021-01-31T22:55:00.000+05:30</published><updated>2021-01-31T22:55:05.941+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="COMPETITIVE PROGRAMMING"/><title type='text'>Chapter 1 &quot;Playing with Loops to Impress&quot; </title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh931CtmhdkgkUaZsW9uW5lT1b_R9J6ZbCkm5dQ3TZM7fqb9Q6ua6n9wPvldeURBaBdsMdBYsn9knaT41CulA5Y6btFOsztccJ5RtfmZCeNutXrNPxVQZnvJh6alw4zVNzwc-TnuTrlwbIz/s1280/WhatsApp+Image+2021-01-31+at+20.20.56.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1280&quot; data-original-width=&quot;904&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh931CtmhdkgkUaZsW9uW5lT1b_R9J6ZbCkm5dQ3TZM7fqb9Q6ua6n9wPvldeURBaBdsMdBYsn9knaT41CulA5Y6btFOsztccJ5RtfmZCeNutXrNPxVQZnvJh6alw4zVNzwc-TnuTrlwbIz/w453-h640/WhatsApp+Image+2021-01-31+at+20.20.56.jpeg&quot; width=&quot;453&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;&lt;b&gt;COMPETITIVE PROGRAMMING&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;b&gt;Chapter 1 &quot;Playing with Loops to Impress&quot;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;After a resound success of Virtual tech webinars, we are back to enhance your Programming skills for placements with a 15 individual chapter series.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Objective:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;1. To crack coding round in campus placements.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;2. To follow the right path and practice coding in initial years&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;b&gt;Register now: &lt;/b&gt;&lt;a href=&quot;http://bit.ly/3j4g6Hd&quot;&gt;http://bit.ly/3j4g6Hd&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;b&gt;Whatsapp group link:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://chat.whatsapp.com/IQhwTO3FgmCEePV6SC1KPQ&quot;&gt;https://chat.whatsapp.com/IQhwTO3FgmCEePV6SC1KPQ&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;b&gt;Instagram:&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://instagram.com/hacknation.in?igshid=ofm103xcl2ml&quot;&gt;https://instagram.com/hacknation.in?igshid=ofm103xcl2ml&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/238496937260847132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/238496937260847132'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2021/01/chapter-1-playing-with-loops-to-impress.html' title='Chapter 1 &quot;Playing with Loops to Impress&quot; '/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh931CtmhdkgkUaZsW9uW5lT1b_R9J6ZbCkm5dQ3TZM7fqb9Q6ua6n9wPvldeURBaBdsMdBYsn9knaT41CulA5Y6btFOsztccJ5RtfmZCeNutXrNPxVQZnvJh6alw4zVNzwc-TnuTrlwbIz/s72-w453-h640-c/WhatsApp+Image+2021-01-31+at+20.20.56.jpeg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-2453312451713366184</id><published>2021-01-27T10:54:00.003+05:30</published><updated>2022-07-23T19:21:20.900+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="MongoDB"/><title type='text'>MongoDB Aggregation</title><content type='html'>&lt;div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;b&gt;Student Collection:&amp;nbsp;&amp;nbsp;&lt;a href=&quot;https://drive.google.com/file/d/1rLNAPvHdXY9HOma6JXnhyHAsePVcM0ZG/view?usp=sharing&quot; target=&quot;_blank&quot;&gt;Download Student.json&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;background-color: white; line-height: 19px; white-space: pre;&quot;&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;Function&amp;nbsp;to&amp;nbsp;Count&amp;nbsp;no.&amp;nbsp;of&amp;nbsp;Documents&amp;nbsp;in&amp;nbsp;a&amp;nbsp;Collection&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;db.student.count()&lt;/div&gt;&lt;span style=&quot;font-family: Consolas, Courier New, monospace;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;db.student.aggregate([&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//stage-1&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;$match&lt;/span&gt;:&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;sec&lt;/span&gt;:&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;B&quot;&lt;/span&gt;}&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//stage-2&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;$count&lt;/span&gt;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Total-Student&amp;nbsp;in&amp;nbsp;Sec:B&quot;&lt;/span&gt;}&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;])&lt;/div&gt;&lt;span style=&quot;font-family: Consolas, Courier New, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;db.student.aggregate([&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//stage-1&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;$match&lt;/span&gt;:&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;sec&lt;/span&gt;:&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;B&quot;&lt;/span&gt;}&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//stage-2&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;$group&lt;/span&gt;:&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;_id&lt;/span&gt;:&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;$gender&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #cd3131;&quot;&gt;total_st&lt;/span&gt;:&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;$sum&lt;/span&gt;:&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;},&amp;nbsp;&lt;span style=&quot;color: #cd3131;&quot;&gt;max_age&lt;/span&gt;:{&lt;span style=&quot;color: #cd3131;&quot;&gt;$max&lt;/span&gt;:&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;$age&quot;&lt;/span&gt;}&amp;nbsp;}&amp;nbsp;},&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//stage-3&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;$match&lt;/span&gt;:&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;_id&lt;/span&gt;:&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;male&quot;&lt;/span&gt;}},&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//stage-4&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;$project&lt;/span&gt;:&amp;nbsp;{&lt;span style=&quot;color: #0451a5;&quot;&gt;&quot;max_age&quot;&lt;/span&gt;:&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;}}&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;])&lt;/div&gt;&lt;span style=&quot;font-family: Consolas, Courier New, monospace;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;db.student.aggregate([&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//stage-1&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;$group&lt;/span&gt;:{&lt;span style=&quot;color: #cd3131;&quot;&gt;_id&lt;/span&gt;:&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;$sec&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #cd3131;&quot;&gt;total_stu&lt;/span&gt;:{&lt;span style=&quot;color: #cd3131;&quot;&gt;$sum&lt;/span&gt;:&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;}}},&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//stage-2&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;$sort&lt;/span&gt;:&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;_id&lt;/span&gt;:&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;}},&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//stage-3&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;$skip&lt;/span&gt;:&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;},&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//stage-4&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;$limit&lt;/span&gt;:&lt;span style=&quot;color: #098658;&quot;&gt;2&lt;/span&gt;},&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//stage-5&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;$out&lt;/span&gt;:&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;FilteredCollection&quot;&lt;/span&gt;}&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;])&lt;/div&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;-------------------Example------------------------&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;db.skill.insert([&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;name&lt;/span&gt;:&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;pankaj&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #cd3131;&quot;&gt;skills&lt;/span&gt;:[&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;c&quot;&lt;/span&gt;,&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;c++&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;python&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;java&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;web&quot;&lt;/span&gt;]},&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;name&lt;/span&gt;:&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;sachin&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #cd3131;&quot;&gt;skills&lt;/span&gt;:[&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;web&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;python&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;java&quot;&lt;/span&gt;]},&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;name&lt;/span&gt;:&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;manish&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #cd3131;&quot;&gt;skills&lt;/span&gt;:[&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;ml&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Iot&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;web&quot;&lt;/span&gt;]}&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;])&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;b&gt;Problem: &lt;/b&gt;Find the name of the students who are having &quot;web&quot; as their skills.&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Consolas, Courier New, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;db.skill.find({&lt;span style=&quot;color: #cd3131;&quot;&gt;skills&lt;/span&gt;:&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;web&quot;&lt;/span&gt;})&lt;/div&gt;&lt;span style=&quot;font-family: Consolas, Courier New, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;Using Aggregation &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;db.skill.aggregate([&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;$group&lt;/span&gt;:&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;$skills&quot;&lt;/span&gt;}&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;])&lt;/div&gt;&lt;span style=&quot;font-family: Consolas, Courier New, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;----&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;$unwind&amp;nbsp;stage&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;----&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Consolas, Courier New, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;db.skill.aggregate([&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;$unwind&lt;/span&gt;:&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;$skills&quot;&lt;/span&gt;}&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;])&lt;/div&gt;&lt;span style=&quot;font-family: Consolas, Courier New, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;----&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;$unwind&amp;nbsp;and&amp;nbsp;group&amp;nbsp;stage&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;----&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Consolas, Courier New, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;db.skill.aggregate([&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;$unwind&lt;/span&gt;:&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;$skills&quot;&lt;/span&gt;}&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;$group&lt;/span&gt;:{&lt;span style=&quot;color: #cd3131;&quot;&gt;_id&lt;/span&gt;:&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;$skills&quot;&lt;/span&gt;}}&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;])&lt;/div&gt;&lt;span style=&quot;font-family: Consolas, Courier New, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;--------Solution&amp;nbsp;to the Problem ------------------------&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;db.skill.aggregate([&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;$unwind&lt;/span&gt;:&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;$skills&quot;&lt;/span&gt;},&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;$group&lt;/span&gt;:{&lt;span style=&quot;color: #cd3131;&quot;&gt;_id&lt;/span&gt;:&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;$skills&quot;&lt;/span&gt;,&lt;span style=&quot;color: #cd3131;&quot;&gt;count&lt;/span&gt;:{&lt;span style=&quot;color: #cd3131;&quot;&gt;$sum&lt;/span&gt;:&lt;span style=&quot;color: #098658;&quot;&gt;1&lt;/span&gt;},&amp;nbsp;&lt;span style=&quot;color: #cd3131;&quot;&gt;names&lt;/span&gt;:{&lt;span style=&quot;color: #cd3131;&quot;&gt;$push&lt;/span&gt;:&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;$name&quot;&lt;/span&gt;}}}&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #cd3131;&quot;&gt;$match&lt;/span&gt;:{&lt;span style=&quot;color: #cd3131;&quot;&gt;_id&lt;/span&gt;:&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;web&quot;&lt;/span&gt;}}&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;])&lt;/div&gt;&lt;span style=&quot;font-family: Consolas, Courier New, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/2453312451713366184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/2453312451713366184'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2021/01/mongodb-aggregation.html' title='MongoDB Aggregation'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7487206807828883532.post-5164577861910333495</id><published>2021-01-08T14:12:00.002+05:30</published><updated>2021-01-08T14:27:33.699+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Fullstack - 2"/><title type='text'>MEAN vs MERN (Elementary Class-2)</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;iframe src=&quot;https://docs.google.com/presentation/d/e/2PACX-1vQ23-LanXxnkAr9Z2LcPJwsbzK4PFKb_VHEJgWLUDlxnCFQozreDT5il5wSsULQjXJqpwBZW7hn8QKM/embed?start=true&amp;loop=true&amp;delayms=15000&quot; frameborder=&quot;0&quot; width=&quot;750&quot; height=&quot;450&quot; allowfullscreen=&quot;true&quot; mozallowfullscreen=&quot;true&quot; webkitallowfullscreen=&quot;true&quot;&gt;&lt;/iframe&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/5164577861910333495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487206807828883532/posts/default/5164577861910333495'/><link rel='alternate' type='text/html' href='http://www.beta-labs.in/2021/01/mean-vs-mern.html' title='MEAN vs MERN (Elementary Class-2)'/><author><name>BETALABS</name><uri>http://www.blogger.com/profile/06871779083643444667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>