Frontend_ReactJS_SS32

Frontend_ReactJS_SS32

University

20 Qs

quiz-placeholder

Similar activities

Quiz #2

Quiz #2

University

15 Qs

ARDU TEST

ARDU TEST

9th Grade - University

20 Qs

UML and System Modeling Quiz

UML and System Modeling Quiz

12th Grade - University

15 Qs

Java Quiz I

Java Quiz I

University

17 Qs

Session 08: Array

Session 08: Array

University

16 Qs

ICDL K4_ Xử lý văn bản P1_5*

ICDL K4_ Xử lý văn bản P1_5*

5th Grade - University

16 Qs

ZTInt

ZTInt

University

24 Qs

Frontend_ReactJS_SS17

Frontend_ReactJS_SS17

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?