Frontend React Flashcards
Qu’est-ce que SPA (Single page application)
Quels sont les avantages de React
Quels sont les désavantages de React
Différence React vs Angular
React vs Angular:
1. Javascript library vs Complete framework
2. React uses a virtual DOM (Faster) vs Angular uses a real DOM
3. React is smaller in size and lightweight vs Angular is bigger because complete framework
4. React depends on external libraries so more coding lines vs Angular framework built-in support for features
5. React is simple to learn vs more difficult to learn
What is a DOM?
Represent the web page as a tree-like structure allows Javascript to dynamically access and manipulate the content
Difference between DOM and Virtual DOM
Virtual DOM only renders the element that is changed and makes the page more responsive vs real DOM refreshes the page with only one little change
What is React Components
In react it’s a reusable building block for creating UI
What is npm and node_modules
Npm is used to manage dependencies for the react project including react library itself
What is the role of public folder
Public folder contains static assets thatare served directly to the user’s browser