interface AsyncState<T> {
data: T | null;
loading: boolean;
error: string | null;
}
export const useAsyncData = <T>(
fetchFn: () => Promise<T>
): AsyncState<T> => {
const [state, setState] = useState<AsyncState<T>>({
data: null,
loading: true,
error: null,
});
useEffect(() => {
fetchFn()
.then(data => setState({
data,
loading: false,
error: null
}))
.catch(error => setState({
data: null,
loading: false,
error: error.message
}));
}, []);
return state;
};Get to know me
About Me
A passionate software engineer who believes great code is not just functional, but readable, maintainable, and impactful.
My Journey
Intern - SQL Developer @ Elevate Labs
2025Worked on Database Management and SQL & PostgreSQL queries.
Flutter Bootcamp @ Udemy
2025Developed Apps using Flutter and Dart.
Data Science Bootcamp @ GeeksforGeeks
2025Learned Data Science concepts and applied them in projects.
Data Structures and Algorithms using C @ Self Learning
2024Learned Data Structures and Algorithms using C.
Oops using C++ @ Self Learning
2024Learned Object-Oriented Programming concepts using C++.
Student @ Self Learning
2023Learned HTML, CSS, JS and started exploring React.
Featured Projects
A selection of projects showcasing my expertise in full-stack development, from concept to deployment.

Flood Prediction Website
A Weather Flood Prediction website that takes live weather data as parameter .

Task Management App with ISAR DB
A Simple and Modern Todo App using ISAR DB.

DataBase Management Systems
A Database Management System which utilizes Python Faker to generate real-like data.

Anonn Bloging Platform
A anonymous blogging platform where users can share their thoughts without revealing their identity.
Skills & Tools
Resume & Experience
Download my full resume to learn more about my professional experience and technical background.