GENERAL KNOWLEDGE
React in frontend:
It is a Javascript library used for building user interfaces(UIs) of web applications.
Developed by facebook, it’s widely used for creating interactive,fast and scable web
applications.
In simple terms:
Build components - like buttons,forms,or entire pages - that can update dynamically when data
changes,without reloading the page.
Key features:
1.Component - based architecture:
Resuable components
Ex: A <Navbar> component can be reused on multiple pages.
2.Virtual DOM:
Virtual representation of the DOM to make updates efficient.
It only updates the actual DOM parts,not the entire page.
3.One-way Data Binding:
It is making the app for more predictable
Data flows from parent to child.
4.State Management:
Manage the component’s internal data (state) that controls how its behaves or renders.
Where React Fits in Frontend Deveopment:
It combined with:
HTML/CSS for structure and styling
APIs for data
Build tools like webpack,Vite,or create React app.
Frameworks like Next.js for server-side rendering and routing.
In offline which data base is best ?
The best database depends on the types of application and devices(desktop,mobile,embedded,etc.)
SQLite
light weight,file-based,zero configration.
Great for small-to-medium apps,prototyping, or mobile apps.
Postgre/MySQL
Heavier then SQLite,but powerful for full-featured offline desktop/server apps.
It requires installation and configuration.
Mobile Apps(Android/iOS)
SQLite : built-in on both Android and iOS.
Room (Android) : ORM over SQLite
Core Data(iOS) : Apple’s native frameworks using SQLite undereath
Realm : cross-paltform mobile database,works on offline , doesnot require SQL