Commit Graph

15 Commits (master)

Author SHA1 Message Date
Jason Zhu 0b0c7d0f46 Use new createSlice to replace reducer 2023-03-02 21:27:34 +11:00
Jason Zhu 3ac4494157 Installed RTK 2023-03-02 20:35:23 +11:00
Jason Zhu 3b5d2a2407 Refactored test, so UT can run properly 2023-03-02 20:23:53 +11:00
Jason Zhu 1a98c9b40e Reorganised file structure as rails-style 2023-03-02 18:13:28 +11:00
Jason Zhu 2ff5f08cd6 Remove unused action import from App.tsx 2023-03-02 18:03:41 +11:00
Jason Zhu 534cfb94af Refactor Todo component and App.tsx 2023-03-02 18:00:07 +11:00
Jason Zhu de1dcb0280 Removed redundant files in /src 2023-03-02 17:49:02 +11:00
Jason Zhu 7586a1b2a4 Move reducer out of store.ts 2023-03-02 17:23:38 +11:00
Jason Zhu af8bc8c78e Change state management from React hook to pure Redux 2023-03-02 17:19:42 +11:00
Jason Zhu 8473df7a16 Move TodoItem from App.tsx to standalone types.ts 2023-03-02 16:52:11 +11:00
Jason Zhu 01cbf39684 Reformat code to have 4 indent for a tab 2023-03-02 16:50:21 +11:00
Jason Zhu 78fde10f19 Removed RTK from package.json, added redux, react-redux, and types 2023-03-02 14:53:55 +11:00
Jason Zhu 980797bfed Added test for Todo component using React Testing Library, and added react-redux 2023-03-02 14:29:54 +11:00
Jason Zhu c816eebbe5 Modified stock app to Todolist app 2023-03-01 15:47:24 +11:00
Jason Zhu a7ae56f99d Initialize project using Create React App 2023-03-01 15:24:31 +11:00