
ReactJs Exercise

Quiz
•
Information Technology (IT)
•
University
•
Medium
Trường Sinh
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
React là _____?
Javascript Framework
Javascript Library
Cả A và B đều đúng
Cả A và B đều sai
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hàm được gọi để hiển thị HTML cho một trang web trong React?
reactDOM_render()
render()
render_DOM()
DOM_HTML()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hook nào trong React được sử dụng để quản lý state trong functional component?
useContext
useReducer
useState
useEffect
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Điều gì sẽ xảy ra nếu bạn cập nhật state với cùng giá trị hiện tại?
Component sẽ re-render mỗi lần gọi setState, bất kể giá trị mới giống giá trị cũ.
Component sẽ không re-render nếu giá trị mới giống với giá trị hiện tại.
State sẽ luôn đặt lại về giá trị khởi tạo ban đầu.
React sẽ hiển thị một cảnh báo về việc không nên cập nhật state với giá trị tương tự.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
useEffect hook được sử dụng để làm gì?
Quản lý state
Tạo ra một component mới
Thực hiện side effects trong component
Tối ưu hóa render
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khi nào thì useEffect trong Functional Components của React sẽ chạy lại?
Mỗi khi component cha re-renders.
Chỉ khi các dependencies trong mảng dependencies của useEffect thay đổi.
Chỉ khi component mount lần đầu tiên.
Chỉ khi component được unmount.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
useRef trong React có tác dụng gì?
Giữ trạng thái của component
Tạo một biến có thể giữ giá trị qua nhiều lần render mà không kích hoạt render lại
Cập nhật lại component khi giá trị thay đổi
Lưu trữ dữ liệu và truyền đến component con
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
CPU Components Quiz

Quiz
•
10th Grade - University
14 questions
Web_FE_BASIC_SS17

Quiz
•
University
15 questions
Quiz KTCB & fun

Quiz
•
University
7 questions
DB01-Hệ Quản Trị Cơ Sở Dữ Liệu Quan Hệ

Quiz
•
University
15 questions
Session 03: Input & Output in C Programming Language

Quiz
•
University
15 questions
Quiz bộ so sánh tương tự và bộ chuyển đổi ADC

Quiz
•
University
15 questions
Bài 27

Quiz
•
10th Grade - University
10 questions
React and Hooks Quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University