Custom Gutenberg Block
Lập trìnhTạo block để hiển thị sách mới nhất
Hướng dẫn
Lời giải
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