,

Part 1: MERN Stack Lesson 1 in Sinhala | සිංහලෙන් React

Posted by

MERN Stack Lesson 1 | React සිංහලෙන් Part 1 | React Sinhala

MERN Stack Lesson 1 | React සිංහලෙන් Part 1 | React Sinhala

Welcome to the first lesson of MERN Stack with React in Sinhala! In this lesson, we will be introducing the basics of React and how to create a simple React component.

What is MERN Stack?

MERN Stack stands for MongoDB, Express, React, and Node.js. It is a popular and powerful stack for building modern web applications. React is the frontend framework in the MERN Stack, and it allows developers to create dynamic user interfaces with ease.

Introduction to React

React is a JavaScript library for building user interfaces. It allows developers to create reusable UI components and manage the state of an application efficiently. React uses a virtual DOM to optimize performance, and it is widely used in the industry for building single-page applications.

Creating a Simple React Component

Let’s start by creating a simple React component. We will create a component that displays a “Hello, World!” message on the screen.

“`jsx
import React from ‘react’;

class HelloWorldComponent extends React.Component {
render() {
return (

Hello, World!

);
}
}

export default HelloWorldComponent;
“`

In this code snippet, we are creating a class component called `HelloWorldComponent`. The `render` method returns a JSX element that displays the “Hello, World!” message. We then export the component to be used in other parts of our application.

Conclusion

That’s it for the first part of our React lesson in Sinhala. We have introduced the basics of React and created a simple React component. In the next lesson, we will dive deeper into React and explore more advanced concepts.

0 0 votes
Article Rating
13 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
@user-be5sp2rm4k
6 months ago

npx create-react-app testreactapp dunnama Error code ekak enawane. mata mae course eka hungak wedagath sir. magae node V20.10.0 saha npm 10.2.3

@sumuduheendeniya
6 months ago

Thank you brother ❤

@niroshalakmal2029
6 months ago

poddak sinhalen kiyala denna.amarana weno samahara welawata

@hasithdilshan7661
6 months ago

සුපිරි වැඩක්

@hewageleelarathna3557
6 months ago

Brother me series eka follow krnna kalim java script gana mulika danumak one wenwada?

@lakshanjayasundara4961
6 months ago

supiri.. elaga tikath ikamata ona apita. hoadata onama kanakata therena widihata kiyala denawa. ❤❤‍

@AshanSuranjana-ff3nw
6 months ago

ඉලග කොටස් ඔනී…❤️‍❤️‍

@Timetopices
6 months ago

Watina channel ekak ❤

@Timetopices
6 months ago

❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤ good 👍

@shamal8948-zo5ne
6 months ago

Great work…❤

@user-sb5bl9dr7t
6 months ago

super❤

@arkamameen8180
6 months ago

Kiyapu widihata video eka genawa superb❤

@mohomedrushdi6170
6 months ago

Superb. keep it up brother. Thank you Please include this UI components. such as (navigation bar with a toggle bar, Home page and other thing) bcz i am trying to create a portfolio website.