WorksheetsTailwind CSS and React
Total questions: 20
Worksheet time: 10mins
ข้อใด ไม่ใช่ ข้อดีของการใช้ CSS Framework?
ลดเวลาการเขียน CSS
ทำให้เว็บโหลดเร็วขึ้นเสมอ
มีคลาสสำเร็จรูปให้ใช้งาน
รองรับ Responsive Design ได้ง่าย
ข้อใด เป็นจุดเด่น ของ Tailwind CSS เมื่อเทียบกับ CSS Framework อื่น ๆ
ใช้แนวคิด Utility-First
มี Component สำเร็จรูปให้ใช้เหมือน Bootstrap
ไม่สามารถปรับแต่งได้
ใช้เฉพาะกับ React เท่านั้น
คำสั่งใดใน Tailwind CSS ใช้สำหรับกำหนดสีพื้นหลังเป็นสีฟ้า?
bg-blue
background-blue
bg-blue-500
background-color: blue
Tailwind CSS 4.0 ได้ยกเลิกการรองรับอะไร?
JIT Compiler
PostCSS
PurgeCSS
Variant-Based Approach
ข้อใด เป็นคุณสมบัติใหม่ใน Tailwind CSS 4.0
ใช้ CSS Grid เท่านั้น
รองรับสีแบบใหม่ที่ชื่อว่า oklch
ไม่สามารถใช้ Dark Mode ได้
ยกเลิกการใช้งาน Responsive Design
React 19 มีการอัปเดตอะไรที่สำคัญ?
รองรับ JSX ใหม่โดยไม่ต้องใช้ React.createElement
ไม่สามารถใช้ Hooks ได้
Require class components เท่านั้น
ไม่รองรับ Virtual DOM
ข้อใดคือฟังก์ชันหลักของ React?
จัดการ DOM โดยตรง
ใช้สำหรับสร้าง REST API
ใช้สร้าง UI แบบ Component-Based
เป็น CSS Framework
ข้อใด ไม่ใช่ Hook พื้นฐานใน React?
useState
useEffect
useRedux
useRef
คำสั่งใดใช้ติดตั้ง Tailwind CSS ใน React?
npm install tailwindcss
npm install bootstrap
yarn add material-ui
npm install tailwind-react
ไฟล์ tailwind.config.js ใช้ทำอะไร?
กำหนดค่าเริ่มต้นของ Tailwind CSS
ใช้สำหรับติดตั้ง React
ใช้จัดการ Routing
ใช้สำหรับตั้งค่า Redux
คลาส flex ใน Tailwind CSS ใช้ทำอะไร?
ทำให้ Element ซ่อน
ทำให้ข้อความอยู่กึ่งกลาง
ใช้ Flexbox Layout
เปลี่ยนสีตัวอักษร
ข้อใด ไม่ใช่ Utility Class ของ Tailwind CSS?
text-center
margin-auto
grid-cols-3
p-4
การสร้าง Component ใน React ต้องใช้ฟังก์ชันอะไร?
function หรือ arrow function
defineComponent
new Component
initComponent
props ใน React ใช้สำหรับอะไร?
จัดเก็บ State
ส่งข้อมูลระหว่าง Components
ใช้จัดการ Routing
กำหนด CSS Styles
หากต้องการเพิ่มสีใหม่ใน Tailwind CSS ต้องทำอย่างไร?
เพิ่มใน theme.extend.colors ของ tailwind.config.js
เพิ่มใน index.css
ใช้ style="background-color: red;"
ใช้ import tailwind from 'colors'
Tailwind CSS ใช้คีย์เวิร์ดอะไรในการกำหนด Responsive Design?
@media
screen:
sm:, md:, lg:, xl:
responsive:
ข้อใด เป็นการกำหนดให้ข้อความใหญ่ขึ้นเมื่ออยู่ในหน้าจอขนาดใหญ่?
text-lg
lg:text-xl
md:text-sm
sm:text-2xl
ข้อใด เป็นการตั้งค่าให้ Container กึ่งกลางหน้าจอ?
container mx-auto
center container
text-center
w-100
วิธี Deploy React Application ขึ้น Vercel ต้องใช้คำสั่งอะไร?
npm run deploy
vercel deploy
yarn deploy
deploy vercel
หากต้องการ Build React Project ใช้คำสั่งอะไร?
npm start
npm build
npm run build
react build
