Create Your First Functional Component in React JS – Beginner's Guide

Image
Create Your First Functional Component in React JS  1. Introduction When you start learning React JS, one of the first things you will come across is the concept of components. At first, components may seem like just another programming concept, but they are actually the foundation of almost every React application. Think about a website you use every day. It may have a header, navigation menu, login form, product section, and footer. Instead of writing all these elements together in one large file, React allows us to create separate parts and manage them independently. These separate parts are called components. In this tutorial, we are going to create our first functional component in React. We will start with a very simple example and gradually understand how components are created, exported, imported, and displayed on a webpage.  2. What Is a Functional Component in React?   A functional component is simply a JavaScript function that returns a user interface using JSX...

css class attribute


 Html Class Atribute

Information

      1] The html lesson attrubute is utilized to indicate a lesson

             for an html component
             2] Course quality is utilize to point to course title in fashion sheep .
             3]Three component with a course attrubute with esteem
city

 Program


<!doctype html>
<html>
<head>
<title> class attribute use</title>
<style>
.satara{
background-color:purple;
color:white;
border:2px;
margin:20px;
padding:19px;
}

.mumbai{
background-color:pink;
color:white;
border:2px;
margin:20px;
padding:19px;
}
.pune{
background-color:red;
color:white;
border:2px;
margin:20px;
padding:19px;
}
</style>
</head>
<body>
<div class="satara">
<h2>Satara special food kandi pedhe</h2>
</div>

<div class="mumbai">
<h2>Mumbaispecial food vada pav</h2>
</div>

<div class="pune">
<h2>pune special Mava jalebi</h2>
</div>

</body>
</html>

OUTPUT

class attribute use


2] Program


<!doctype html>

<html>

<head>

<title> class attribute use</title>

<style>

.satara{

background-color:purple;

color:white;

border:2px;

margin:20px;

padding:19px;

}

.mumbai {

background-color:pink;

color:white;

border:2px;

margin:20px;

padding:19px;

}

.pune{

background-color:red;

color:white;

border:2px;

margin:20px;

padding:19px;

}

</style>

</head>

<body>

<div class="satara">

<h2>Satara special food kandi pedhe</h2>

</div>

<div class="mumbai">

<h2>Mumbaispecial food vada pav</h2>

</div>

<div class="pune">

<h2>pune special Mava jalebi</h2>

</div>

</body>

</html>

OUTPUT

class attribute use



Related Post  :-

css introduction

css class selector

php variable

Comments

Popular posts from this blog

HTML Tag

CSS Text Color Explained with Syntax and HTML Examples

CSS Outline Offset Property with Practical Examples