Bộ Code Snippets siêu tốc được thiết kế tối ưu thực hành môn Front-End.
Được phát triển bởi HelloCrus147.
Các Snippets hỗ trợ (Prefix)
Cấu trúc thư mục tương ứng cho bộ Snippet mới này bao gồm:
main.jsx -> Gõ ex-main
App.jsx -> Gõ ex-app
context/Context.jsx -> Gõ ex-context
hooks/useFetch.jsx -> Gõ ex-usefetch
pages/Login.jsx -> Gõ ex-login
pages/Products.jsx -> Gõ ex-products
pages/Detail.jsx -> Gõ ex-detail
Hướng dẫn sử dụng
0.1 Câu lệnh xét quyền Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Đảm bảo dự án đã cài các thư viện: npm install react react-dom react-router-dom
Tạo lần lượt các folder context, hooks, pages và các file tương ứng bên trong.
Vào từng file gõ các prefix ở trên rồi nhấn Tab.
api mẫu [{
"id": 1,
"customer": "Nguyễn Văn An",
"address": "TP.HCM",
"phone": "0901234567",
"product": "Tai nghe Bluetooth",
"status": "pending"}]