- What problems does React aim to solve?
- How might React differ from other JavaScript frameworks or libraries you've heard of?
- How might building an application with components be advantageous?
- How does React's Virtual DOM differ from the actual DOM, and why might this be beneficial?
- How does JSX combine JavaScript and HTML-like markup?
- How does a traditional website differ from a Single Page Application?
- Why might developers choose to build an SPA using React?
- How might an application's data or user interface be affected by changes over time?
- How do you think React manages this dynamic data?
-
-
Save halitbatur/5e6f50609b99f87964f9af510a5d8a70 to your computer and use it in GitHub Desktop.
1- React is a popular JavaScript library for building user interfaces, and it aims to solve several problems related to building complex and interactive web applications. Some of the problems that React addresses include Complex UIs, Virtual DOM, and State Management.
2- i- Declarative approach: This can make it easier to understand and reason about your code, as you don’t have to worry about the underlying implementation details. ii- Virtual DOM: This can make React apps faster, reducing the number of DOM manipulation operations needed.
3- Reuseable: you can use the same component in multiple application parts or even across different projects.
Modularity: A complex user interface can be divided into smaller components making it easier to understand and maintain.
4- Actual DOM: Direct Manipulation: When you change any part of the actual DOM, the browser has to re-render the entire page, which can be slow and resource-intensive.
Virtual DOM: Indirect Representation: When changes are made in a React application, they are first applied to the Virtual DOM, not the actual DOM.
9-React manages dynamic data using a virtual DOM. When data changes, React calculates the minimum necessary updates and re-renders only the parts of the user interface that need to change.
Room number: 12
written by:
Raneem, Sanad, Farah, Amany
Q1:
React make dynamic application easier to write, and build a user interface that relies on changing data.
Q2:
Instead of costly direct DOM updates, React uses a virtual DOM to efficiently render changes, Server-side rendering: Boosts performance and SEO (search engine optimization)
Q3:
Using components in apps is like using building blocks; it's easier to assemble, and change, and everyone can work together smoothly.
Q4:
Real DOM is what you see on your browser screen and virtual DOM is a copy of it, but it's lighter and faster.
React can make web pages feel quicker and more responsive because updating the real DOM directly often takes more time.
Q5:
JavaScript XML: is a JavaScript syntactic extension that allows you to construct HTML-like content within a JavaScript file.
const element =
;
Q6:
SPAs support rich, client-facing functionality without reloading the page each time a user performs an action. They also load faster than their traditional counterparts by fetching data using APIs.
Q7:
Because of using React's fast virtual DOM and component-based design, developers can easily build sophisticated and responsive web apps.
Q8:
Over time, an application's data and user interface can change due to user interactions, software updates, external data shifts, and feedback. Essentially, as technology, user needs, and external factors evolve, applications must adapt, leading to changes in how they look and function.
Q9:
React uses a virtual DOM to efficiently update the UI when data changes, enabling dynamic content rendering with minimal refreshes.