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-mainApp.jsx-> Gõex-appcontext/Context.jsx-> Gõex-contexthooks/useFetch.jsx-> Gõex-usefetchpages/Login.jsx-> Gõex-loginpages/Products.jsx-> Gõex-productspages/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,pagesvà 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"}]