Bài 09: Khóa học Redux-Saga

Bài 09: Khóa học Redux-Saga

  

Link tham khảo : https://material-ui.com/getting-started/installation/

tạo thư mục React.js
tiến hành cài đặt trong file packege,json với cmd:
// with npm
npm install @material-ui/core

// with yarn
yarn add @material-ui/core
Material-UI được thiết kế với phông chữ Roboto ta tiến hành nhúng vào index.html .
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" />
để sử dụng các icon ta nhúng vào index.html 
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />

Để sử dụng các biểu tượng SVG Material dựng sẵn, chẳng hạn như những biểu tượng được tìm thấy trong các bản demo biểu tượng, trước tiên bạn phải cài đặt gói @ material-ui / icon :

// with npm
npm install @material-ui/icons

// with yarn
yarn add @material-ui/icons

chú thích : rcc : phím tắt tạo nhanh component class  App extends Component{}.









Đăng nhận xét

0 Nhận xét

myadcash