⭐React Tech Stack
Teach Stack & Project Structure
#Stack Lists
State managementredux , redux-thunk , redux-persist , context-api
Css frameworktailwindcss , styled components , mui
optional : headlessui
Routerreact-router-dom
Http Request & Data Fetchingfetch (native js) , react-query
Table managementreact-table
Form managementreact-hook-form
Languaguereact-i18n
DeploymentBuild Docker file
TestJest(Unit Test)
Date picker
Mui Date Picker
Charting
Victory chart
#Naming convention
Varible : CamelCase
Function : CamelCase
Varible Config : Screnming Snake Case
Component : Upper Camel Case
File , Folder : lower camel case,
Action Store : Screnming Snake Case
Type Interface or Type Assertions :
Use PascalCase for interface names.
Use camelCase for interface members.
Use "I" as a prefix for interface names.
Use "Props" end of interface name
State :Use "use" prefix for state name and use "set" prefix for setState
#Proejct Structure
#Pages
ใน folder pages จะแบ่ง folder ตามชื่อ หน้านั้นๆ(path) โดยแต่ละ folder path จะมี folder แยกย่อยดังนี้
components - สำหรับไฟล์ component ที่ใช้เฉพาะในหน้านั้นๆ
contexts - สำหรับไฟล์ context ที่ใช้เฉพาะในหน้านั้นๆ
types - สำหรับไฟล์ .ts ที่ใช้เฉพาะในหน้านั้นๆ
Last updated