1.the Material
1.the Material
what is react
It uses a component-based approach to create reusable user interface components.
It's used to create complex and interactive web and mobile user interfaces.
Instead of using the real DOM, it employs the virtual DOM.
Server-side rendering is used.
It improves the performance of the application.
It can be used on both the client and server sides with ease.
2.
4.what is props?
props is stand for property in react.
They are read only component and must be kept immutable.
They passed down from parent to the child components.
5.what is state
States serve as a data source.
states are the objects that determine how components are rendered and behave.
They are mutable and create dynamic and interactive elements.
7.What is redux
Redux is one of the most popular front-end development libraries.
It is a state container for JavaScript applications that is used to manage the
entire state of the application.
Feature WebSocket
HTTPS
Purpose Full-duplex communication (bidirectional) Half-
duplex communication (request-response cycle)
Communication Real-time, persistent connection Connection
is closed after each request-response transaction
Connection Type One connection for continuous data exchange A new
connection is created for each request
Use Case Real-time applications Standard web
browsing, API requests
Protocol Works over TCP (usually ws:// or wss://) Works over
HTTP/HTTPS (http:// or https://)
Latency Lower latency, as the connection is kept alive
Slightly higher latency due to repeated connection setup
Overhead Lower overhead, as it avoids repeated HTTP handshakes Higher
overhead, since each request requires a full handshake
Security Can use WSS (WebSocket Secure) for encrypted communicationHTTPS
ensures encrypted communication using SSL/TLS
memory leaks in Js occur when a program or application allocates memory but fails
to release or deallocate it properly .over time these memory leaks can lead to
increased memory usage, slower performance and potential crash.
memwatch-next , heap dump these tools use for this.