0% found this document useful (0 votes)
18 views2 pages

General Knowledge

React is a JavaScript library developed by Facebook for building interactive and scalable user interfaces in web applications, featuring a component-based architecture, virtual DOM for efficient updates, one-way data binding, and state management. It integrates with HTML/CSS, APIs, build tools, and frameworks like Next.js. For offline databases, SQLite is recommended for small-to-medium apps, while PostgreSQL and MySQL are better for full-featured offline desktop/server applications.

Uploaded by

sandhiyamurthi05
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views2 pages

General Knowledge

React is a JavaScript library developed by Facebook for building interactive and scalable user interfaces in web applications, featuring a component-based architecture, virtual DOM for efficient updates, one-way data binding, and state management. It integrates with HTML/CSS, APIs, build tools, and frameworks like Next.js. For offline databases, SQLite is recommended for small-to-medium apps, while PostgreSQL and MySQL are better for full-featured offline desktop/server applications.

Uploaded by

sandhiyamurthi05
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

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

You might also like