Modern Full-Stack Development


A Quick Detour: Material-UI



Download 5,64 Mb.
Pdf ko'rish
bet68/107
Sana06.08.2021
Hajmi5,64 Mb.
#140576
1   ...   64   65   66   67   68   69   70   71   ...   107
Bog'liq
Modern Full-Stack Development Using TypeScript, React, Node

 A Quick Detour: Material-UI
Around 2014, Google realized that most of the web app products were going in 
different directions in terms of look, feel, and function. Android, too, was a completely 
different beast visually, and in fact, Android is where the eventual solution began. They 
determined that this wasn’t a sustainable direction to go and they needed to come up 
with something to unify their products.
As a result, the Material Design language was created (
https://material.io
). 
Although it’s not terribly important for our work here, I think a very brief description of 
Material Design itself is in order.
Material Design is a set of design principles that are informed by how people interact 
with real objects in the physical world. Primarily influenced by print media, Material 
Design begins with concepts like sheets of paper and their digital equivalents. When you 
read a book, you turn pages, and that motion is encapsulated in Material Design, just as 
the underlying pattern of the sheet of paper itself is.
Material Design is concerned with how layers of content can slide over each 
other, for example, and those slides, those animations, are key elements. Everything is 
intended to be reactive to touch (remember that this all started with Android, at least in 
its initial implementation, so touch was automatically a key part of Material Design).
As I said, knowing this doesn’t make a huge difference in our work here, but a little 
context never hurt anybody!
Now, what does matter is the Material-UI library itself (
https://material-ui.com
). 
Simply put, this is a library of React components built on top of Google’s Material Design 
language. Being a React library means you simply add it to your project with NPM like 
any other library, import the appropriate parts of it, and use it in your code. For example, 
if you want to put a button on the screen:
import React from "react";
import Button from "@material-ui/core/Button";
const App = () => (
  
);
Chapter 9   Delivering the gooDs: MailBag, the Client


249
Now, I’m glossing over something important here, but we’re going to get to it soon 
(in the section on functional components), but focus on what matters here: React was 
imported naturally, and too was the Button component from Material-UI. Then, it’s 
simply a matter of dropping a 
Download 5,64 Mb.

Do'stlaringiz bilan baham:
1   ...   64   65   66   67   68   69   70   71   ...   107




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©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