Custom Gutenberg Block

Quay lại bài học

Custom Gutenberg Block

Lập trình

Tạo block để hiển thị sách mới nhất

Tạo: 1. Dynamic block "Latest Books" 2. Attributes cho count và layout 3. Server-side rendering 4. REST API integration 5. Block patterns

Code mẫu
// src/index.js
import { registerBlockType } from '@wordpress/blocks';

// Viết code ở đây