Project Overview
The project follows a modular structure with clear separation of concerns.
preskool/
│
└── react/
│
├── public/
│ └── favicon.png
│
├── src/
│ ├── core/
│ │ ├── common/
│ │ ├── data/
│ │ ├── json/
│ │ └── redux/
│ │
│ ├── feature-module/
│ │ ├── components/
│ │ ├── feature-components/
│ │ └── routes/
│ │
│ └── style/
│ ├── css/
│ ├── fonts/
│ ├── icons/
│ └── scss/
│
├── package.json
├── package-lock.json
├── .eslintrc
├── index.html
└── vite.config.ts
Structure Overview
PreSkool React is built with React 19.2.0 and Vite, providing a modern and efficient structure for building scalable applications with component-based architecture.
The React structure follows modern best practices with:
- Component-based architecture - Reusable UI components
- Hooks for state management - Custom hooks for logic reuse
- Pages structure - Route-based page components
- Asset organization - Centralized styling and media files
Main App Component Structure:
import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import { AuthProvider } from './contexts/AuthContext';
import Header from './components/Header';
import Sidebar from './components/Sidebar';
import Dashboard from './pages/Dashboard';
import Students from './pages/Students';
import './assets/css/style.css';
function App() {
return (
} />
} />
} />
} />
);
}
export default App;
Sample Component Structure:
import React, { useState, useEffect } from 'react';
import { useApi } from '../hooks/useApi';
import './StudentList.css';
const StudentList = () => {
const [students, setStudents] = useState([]);
const { getStudents, loading, error } = useApi();
useEffect(() => {
const fetchStudents = async () => {
const data = await getStudents();
setStudents(data);
};
fetchStudents();
}, []);
if (loading) return Loading...;
if (error) return Error: {error};
return (
Students
{students.map(student => (
{student.name}
{student.email}
))}
);
};
export default StudentList;
Scripts Overview
The PreSkool React template uses Vite as the build tool and includes essential scripts for development, building, and deployment processes.
You can find the scripts in the package.json file. Here are the available commands:
| Command | Description |
|---|---|
npm run dev |
Starts the development server with hot module replacement |
npm run build |
Builds the application for production |
npm run preview |
Preview the production build locally |
npm run lint |
Runs ESLint for code linting |
Package.json Scripts Section:
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0"
}
After unzipping Template Files, you will find our product Preskool ->Reactjs(Source code)
Mandatory are npm and node are needed to run the reactjs project
Once unzipped the files,run the command:
npm install (or) npm install --legacy-peer-deps
For running a project , run the command:
npm run dev
If you want to run the project and make the build in the production mode then run the following command in the root directory, otherwise the project will continue to run in the development mode.
npm run build
To install any plugins in your application, you have to run the following command
npm install plugin_name --save (or) npm install plugin_name --legacy-peer-deps
Need Support?
If this documentation does not address your questions, please feel free to contact us via email at support@dreamstechnologies.com
Reach the team at GMT+5:30. Typical reply within 12–24 hours on weekdays — rarely up to 48 hrs during holidays. Support is available to verified buyers for template-related issues.
Contact SupportImportant Note : We strive to offer top-notch support, but it's only available to verified buyers and for template-related issues such as bugs and errors. Custom changes and third-party module setups are not covered.
Do you need a customized application for your business?
If you need a customized application for your business depends on your specific requirements and goals, Please contact us. Customization can be the key to success, ensuring your project perfectly aligns with your unique goals and requirements.
Don't Miss Out on the Benefits of Customization!
Unlock the potential of your project. It's time to ensure your project isn't another cookie-cutter solution but truly unique and effective one.
Discover how customization can make a difference in your project's success. Let's create a solution that's as unique as your vision!
We'll tailor the application to meet your specific needs and preferences.
We will upload your website to the server and ensure it is live.
Thank You
Thank you once again for downloading Preskool.
We hope you're enjoying your experience, and we kindly request that you take a
moment to share your valuable review and rating with us.
