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...

Split a Background into 2 color


Split a Background into 2 color


Program

<html>

<head>

<title>two color one page</title>

<style>

.color{

background-color:pink;

width:60%;

height:420px;

float:right;

}

.color1

{

background-color:skyblue;

<!-select  your color -->

width:40%;

height:420px;

}

</style></head>

<body>

<h1>Two color with one page</h1>

<div class="color"><br><br>

</div>

<div class="color1">

</div>

</body></html>


OUTPUT

two color in one page using html and css

Related Post :-

php program to print hollow triangle star pattern

php program to print increasing triangle

php program to print alphabet pattern M




Comments

Popular posts from this blog

HTML Tag

CSS Text Color Explained with Syntax and HTML Examples

CSS Outline Offset Property with Practical Examples