Lession 2 - React.js

Lession 2 - React.js

Professional Development

11 Qs

quiz-placeholder

Similar activities

Giải trí

Giải trí

Professional Development

10 Qs

Python RestAPI Quiz

Python RestAPI Quiz

Professional Development

14 Qs

Ôn tập bài 27, 28 - k10

Ôn tập bài 27, 28 - k10

Professional Development

10 Qs

Lưu trữ đám mây

Lưu trữ đám mây

Professional Development

11 Qs

Tin 10 bài 12 khởi động

Tin 10 bài 12 khởi động

Professional Development

10 Qs

Bài 2 - Color Basic (Màu sắc cơ bản)

Bài 2 - Color Basic (Màu sắc cơ bản)

Professional Development

10 Qs

Cloud computing 2

Cloud computing 2

Professional Development

10 Qs

Week1

Week1

University - Professional Development

10 Qs

Lession 2 - React.js

Lession 2 - React.js

Assessment

Quiz

Computers

Professional Development

Practice Problem

Easy

Created by

Ba Nguyễn

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

React Component là gì?

React Component là một loại thư viện JavaScript.
React Component chỉ được sử dụng cho ứng dụng di động.
React Component là một công cụ để quản lý cơ sở dữ liệu.
React Component là một khối mã có thể tái sử dụng trong React để xây dựng giao diện người dùng.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Có mấy loại Component trong React?

2 loại Component: Class Component và Functional Component.
4 loại Component: Class, Functional, Pure và Higher-Order Component.
1 loại Component: chỉ có Functional Component.
3 loại Component: Class, Functional và Pure Component.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lưu ý gì khi đặt tên Component?

Đặt tên Component theo số thứ tự để dễ quản lý
Sử dụng snake_case cho tên Component
Sử dụng PascalCase, mô tả rõ chức năng, tránh viết tắt, và đảm bảo tính nhất quán.
Viết tắt các chức năng để tiết kiệm không gian

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cú pháp để sử dụng Component

<component />

<Component />

<Component>

Component()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Khi nào thì nên tách một phần giao diện thành Component?

Khi phần giao diện không cần thay đổi trong tương lai.

Khi phần giao diện có thể tái sử dụng hoặc có logic riêng biệt/phức tạp.

Khi phần giao diện chỉ sử dụng một lần duy nhất.
Khi phần giao diện không có tính năng gì đặc biệt.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Props là gì?

Props là một cách quản lý trạng thái trong React.

Props là một giá trị đặc biệt trong class component.

Props là một biến do người dùng định nghĩa.

Props là một cơ chế truyền dữ liệu giữa các component trong React.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Props có thể nhận những kiểu dữ liệu nào?

string

number

string, number, boolean, array, object, function, và kiểu dữ liệu tùy chỉnh khác.

object

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

Already have an account?