Search Header Logo

Frontend_ReactJS_SS32

Authored by haibt@rikkei.edu.vn rikkei

Information Technology (IT)

University

Used 8+ times

Frontend_ReactJS_SS32
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?