This is a pre-loader code built with Vite, React, and TypeScript. It includes a simple React component that displays a loading spinner and a custom message while data is being fetched or the page is loading.
Node.js (>=14.x) npm (>= 6.x)
Clone the repository or download the source code. Open a terminal and navigate to the project directory. Run the following command to install dependencies: bash
npm install
Run the following command to start the development server: bash
npm run dev
Open your browser and navigate to http://localhost:5173/ to view the app.
You can edit the src/App.tsx file to modify the content displayed while loading. You can also modify the src/components/Loader.tsx file to change the design of the loading spinner.
Run the following command to build the production version of the app:
npm run build
The production build will be placed in the dist directory.
This project is licensed under the MIT License. See the LICENSE file for details.