ReactJS Form & Router

ReactJS Form & Router

Professional Development

10 Qs

quiz-placeholder

Similar activities

KWE Digital Marketing

KWE Digital Marketing

Professional Development

10 Qs

Technology Integration @ CHS

Technology Integration @ CHS

Professional Development

15 Qs

CS Topic 7 (Resume)

CS Topic 7 (Resume)

Professional Development

10 Qs

Recap unit 201

Recap unit 201

Professional Development

10 Qs

Personal Hygiene

Personal Hygiene

Professional Development

10 Qs

KC 30

KC 30

Professional Development

10 Qs

Nodejs: Express

Nodejs: Express

Professional Development

11 Qs

Pre & Post Tes TQM

Pre & Post Tes TQM

Professional Development

10 Qs

ReactJS Form & Router

ReactJS Form & Router

Assessment

Quiz

Professional Development

Professional Development

Easy

Created by

Anh Nguyễn Bá Tuấn

Used 3+ times

FREE Resource

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?

Discover more resources for Professional Development