Buổi 4: Hook

Buổi 4: Hook

Professional Development

9 Qs

quiz-placeholder

Similar activities

AEBT_Test nghiệp vụ

AEBT_Test nghiệp vụ

Professional Development

13 Qs

TẬP HUẤN MODULE 5 (2021)

TẬP HUẤN MODULE 5 (2021)

Professional Development

10 Qs

Tradition or Not! The Christmas Edit

Tradition or Not! The Christmas Edit

Professional Development

13 Qs

ASM Global - EXPERIENCE

ASM Global - EXPERIENCE

Professional Development

10 Qs

FINAL QUIZ

FINAL QUIZ

Professional Development

10 Qs

Applied Networking

Applied Networking

Professional Development

10 Qs

Semiconductor Electronics : Class 3

Semiconductor Electronics : Class 3

Professional Development

12 Qs

Visa Qatar

Visa Qatar

Professional Development

10 Qs

Buổi 4: Hook

Buổi 4: Hook

Assessment

Quiz

Professional Development

Professional Development

Practice Problem

Medium

Created by

Anh Nguyễn Bá Tuấn

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Trong một function component, React Hooks nào sau đây được sử dụng để quản lý trạng thái dữ liệu trong một component?

useReducer()

useEffect()

useState()

useMemo()

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Trong function component, React Hooks nào sau đây được sử dụng để quản lý vòng đời của một component?

useEffect()

useState()

useMemo()

useCallback()

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Điều gì xảy ra khi bạn sử dụng useEffect Hook với mảng rỗng [] làm đối số thứ hai?


useEffect sẽ không bao giờ chạy


useEffect sẽ chạy sau mỗi lần render

useEffect sẽ chạy một lần sau lần render đầu tiên


useEffect sẽ chạy khi có sự thay đổi trong trạng thái hoặc props


4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Props có thể sửa đổi trực tiếp trong component con như state?


Đúng

Sai

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Hooks là gì trong React?

Một phương thức kế thừa từ lớp Component trong React.


Một thư viện bên thứ ba để sử dụng trong ứng dụng React.


Một cơ chế để sử dụng state và các tính năng React khác trong function component.


Lifecycle methods

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Đâu không phải là Hooks được cung cấp bởi React?

useEffect

useState

useRef

useFetch

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Cách nào sau đây là cách chính xác để gán giá trị ban đầu "false" cho trạng thái "isLoading"?

const [isLoading, setIsLoading] = useState(); isLoading = false;

const [isLoading, setIsLoading] = useState(); setIsLoading(false);

const [isLoading, setIsLoading] = useState(false);

this.isLoading=false

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?

Discover more resources for Professional Development