What is React? Flashcards
What is React?
A JavaScript library for building user interfaces.
React runs in the ______ not in the server.
browser
React is about building components for the ____ ______.
User Interface. What the user can see in the front.
Another phrase for components is…
building blocks
______: The logic needed to create components.
React
_____ ____: Renders the components to the DOM.
React DOM
A tool which compiles the next generation JavaScript code to run in the browser.
Babel
Why React?
- With vanilla JavaScript, the UI state becomes difficult to manage. In larger JS applications, you have manually target elements in your DOM and if you change the structure of your HTML code, chances are you will need to change the way you targeted your elements because you used query Selector.
- Even if you use jQuery, traversing the DOM is easier, but it’s still always something you have to keep in mind.
- React helps us by making the whole UI state management a non-issue, allowing you to dynamically add and remove ingredients.
- Allows us to focus on business logic, not preventing your app from exploding.
- Has a huge ecosystem, active community, high performance.
What are the two kinds of application?
- Single Page Applications
2. Multi Page Applications
What is a single page application?
Only one HTML page
• Content is (re)rendered on client
What is a multi page application?
Multiple HTML pages
• Content is rendered on server
What type of application allows you to fully integrate React?
A single page application. A multi page application can not be under React’s full control. The individual widgets don’t know of each other’s existence.