Buổi 5: React Form & Router

Buổi 5: React Form & Router

Professional Development

10 Qs

quiz-placeholder

Similar activities

Pre & Post Tes TQM

Pre & Post Tes TQM

Professional Development

10 Qs

MS402 - Platoon Leadership

MS402 - Platoon Leadership

Professional Development

11 Qs

Operate Scissor Lift

Operate Scissor Lift

Professional Development

10 Qs

MY_GameON: 19 May > Learn-Olympics (QF)

MY_GameON: 19 May > Learn-Olympics (QF)

Professional Development

10 Qs

Know Your Brand

Know Your Brand

Professional Development

7 Qs

BÀI TẬP_KIỂU DỮ LIỆU VÀ KHAI BÁO BIẾN

BÀI TẬP_KIỂU DỮ LIỆU VÀ KHAI BÁO BIẾN

Professional Development

10 Qs

What works in lessons for you?

What works in lessons for you?

Professional Development

9 Qs

IBEX A-ISB

IBEX A-ISB

Professional Development

10 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