- I've created a Vite project by running the following command in the terminal: npm create vite@latest
- Select React as framework
- Select TypeScript as variant
- Run command: npm install
- Run Command: npm install react-router-dom localforage match-sorter sort-by
- Install tailwindcss and its peer dependencies, then generate tailwind.config.js and postcss.config.js files by running command : npm install -D tailwindcss postcss autoprefixer npx tailwindcss init -p
- Add the paths to all of the template files in tailwind.config.js file.
- Add the @tailwind directives for each of Tailwind’s layers to ./src/index.css file.
- Install @heroicons/react from npm: npm install @heroicons/react
- total number of items
- decides the number of items per page
- calculate the total number of pages
- create button dynamically for the pagination using total pages
- determine the current page
- load the appropriate data