-



Download 8,6 Mb.
Pdf ko'rish
bet14/37
Sana18.01.2022
Hajmi8,6 Mb.
#383795
1   ...   10   11   12   13   14   15   16   17   ...   37
Bog'liq
Designing Applications with Spring Boot 2.2 and React JS Step-by-step guide to design and develop intuitive full stack web applications by Dinesh Rajput (z-lib.org)

,
and
elements as shown in the following example:
import React from ‘react’;
class ProdosApp extends React.Component {
   render() {
   return (
   
   
Welcome, hello there PRODOS.
   
Product List
   
This is the product list


   
   );
   }
}
export default ProdosApp;
Let’s navigate to the same web page http://localhost:3000/prodos.html as shown
in the following screenshot:
Figure 8.2: JSX with nested elements
HTML tags in lowercase
In JSX, HTML tags must be in lowercase such as div, span, and h1. HTML tags
in uppercase such as
are invalid.
Using the custom attribute in an HTML tag
You can also use the custom attribute with HTML tags in the JSX file
using data-prefix. Let’s take a look at the following example:
import React from ‘react’;
class ProdosApp extends React.Component {
   render() {
   return (


   < div >
   
Welcome, hello there PRODOS.
   
Product List
   
This is the product list
   < /div>
   );
   }
}
export default ProdosApp;
Using Style in the JSX code
You can also use styles with the HTML tags. Let’s take a look at the following code with the styling in the JSX code:
import React from ‘react’;
class ProdosApp extends React.Component {
render() {
var prodosStyle = {
fontSize: 35,
color: ‘#FFA000’
}
   return (
   
   

Download 8,6 Mb.

Do'stlaringiz bilan baham:
1   ...   10   11   12   13   14   15   16   17   ...   37




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©www.hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish