Buổi 5: React Form & Router

Buổi 5: React Form & Router

Professional Development

10 Qs

quiz-placeholder

Similar activities

Post Test Billing Refund dan Deaktivasi

Post Test Billing Refund dan Deaktivasi

Professional Development

10 Qs

Silver Label Course 301-302

Silver Label Course 301-302

Professional Development

15 Qs

HEALTH AND SAFETY

HEALTH AND SAFETY

Professional Development

10 Qs

Pre Test Bimtek Pemanfaatan TIK Guru Serdang Bedagai

Pre Test Bimtek Pemanfaatan TIK Guru Serdang Bedagai

Professional Development

10 Qs

Review KTD

Review KTD

Professional Development

10 Qs

Quiz1 GST

Quiz1 GST

Professional Development

10 Qs

Pendalaman Google Workspace for Education

Pendalaman Google Workspace for Education

Professional Development

11 Qs

ĐỀ KTTX 1 TIN 6

ĐỀ KTTX 1 TIN 6

Professional Development

11 Qs

Buổi 5: React Form & Router

Buổi 5: React Form & Router

Assessment

Quiz

Professional Development

Professional Development

Practice Problem

Easy

Created by

Anh Nguyễn Bá Tuấn

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong React, phương thức e.preventDefault() được dùng trong form để làm gì?

Ngăn form tự động gửi và làm mới trang

Xóa dữ liệu trong form sau khi gửi

Tự động gửi form mà không cần nhấn nút

Thêm dữ liệu mặc định vào form

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Khi xử lý form trong ReactJS, hook nào thường được dùng để quản lý trạng thái của các input?

useEffect

useState

useContext

useReducer

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong React Router v6/v7, khi sử dụng BrowserRouter hoặc HashRouter, thành phần nào được dùng để định nghĩa một tuyến đường (route) với đường dẫn (path) cụ thể?

<Link>

<Route>

<NavLink>

<Routes>

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong React Router phiên bản 6 hoặc 7, cách nào là chính thống để chuyển hướng người dùng đến một trang khác bằng code?

useNavigate

<NavLink>

useLocation

useParams

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong form React, sự kiện nào được gọi khi người dùng gửi dữ liệu form?

onChange

onClick

onSubmit

onBlur

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để lấy tham số từ URL trong React Router, bạn sử dụng hook nào?

useRoute

useParams

useLocation

useNavigate

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Những cách nào sau đây có thể được dùng để quản lý dữ liệu form trong ReactJS?

Sử dụng useState

Sử dụng thư viện như Formik

Sử dụng useEffect để cập nhật giao diện

Sử dụng uncontrolled components với ref

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