Frontend_ReactJS_SS32

Frontend_ReactJS_SS32

University

20 Qs

quiz-placeholder

Similar activities

Periodic Written Test - Computer

Periodic Written Test - Computer

9th Grade - University

20 Qs

Trắc nghiệm Frontend

Trắc nghiệm Frontend

University

20 Qs

Khám Phá Thiết Kế Mạng LAN

Khám Phá Thiết Kế Mạng LAN

1st Grade - University

20 Qs

Ktra thường xuyên Tin 11

Ktra thường xuyên Tin 11

11th Grade - University

20 Qs

Quizziz Vue.js

Quizziz Vue.js

University

18 Qs

Data flow diagrams

Data flow diagrams

10th Grade - University

16 Qs

Ôn tập Trí tuệ Nhân tạo (VNUIS)

Ôn tập Trí tuệ Nhân tạo (VNUIS)

University

15 Qs

BÀI KIỂM TRA 15 PHÚT - Môn Tin Học 10 - HK2-PYTHON

BÀI KIỂM TRA 15 PHÚT - Môn Tin Học 10 - HK2-PYTHON

10th Grade - University

20 Qs

Frontend_ReactJS_SS32

Frontend_ReactJS_SS32

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

academy rikkei

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Thành phần store trong Redux có nhiệm vụ gì?

Gửi dữ liệu lên server

Kết nối component với API

Tạo layout cho UI

Lưu trữ và quản lý state toàn cục của ứng dụng

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong redux, action là gì?

Là các sự kiện phát sinh từ người dùng để gửi dữ liệu từ View đến Reducer

là một thành phần để cấu tạo lên giao diện của hệ thống

Một hàm để xử lý bất đồng bộ

Một HTTP request

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Luồng hoạt động cơ bản của Redux là gì?

Component → Store → Reducer → Action

Component → API → Reducer → Store

Action → Reducer → Store → View

API → Store → Component

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Component React cần sử dụng hook nào để lấy dữ liệu từ store?

useDispatch()

useSelector()

useStore()

useState()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong ứng dụng React + Redux, thành phần nào bao bọc toàn bộ ứng dụng để cung cấp Redux store?

<Provider store={store}>

<StoreProvider>

<App>

<BrowserRouter>

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Đoạn code dưới đây có mục đích gì trong component?

Gửi action để lấy dữ liệu từ store

Hiển thị nội dung dựa trên giá trị trạng thái lấy từ store

Tự động dispatch action mỗi khi render

Gọi API khi status là loading

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Tại sao không nên lấy toàn bộ state trong useSelector?

Dễ sai cấu trúc

Không lấy được dữ liệu

Không dùng được với dispatch

Làm component re-render mỗi khi bất kỳ phần nào của state thay đổi

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?