What is React? Flashcards

1
Q

What is React?

A

A JavaScript library for building user interfaces.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

React runs in the ______ not in the server.

A

browser

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

React is about building components for the ____ ______.

A

User Interface. What the user can see in the front.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Another phrase for components is…

A

building blocks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

______: The logic needed to create components.

A

React

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

_____ ____: Renders the components to the DOM.

A

React DOM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A tool which compiles the next generation JavaScript code to run in the browser.

A

Babel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Why React?

A
  • 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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the two kinds of application?

A
  1. Single Page Applications

2. Multi Page Applications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a single page application?

A

Only one HTML page

• Content is (re)rendered on client

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a multi page application?

A

Multiple HTML pages

• Content is rendered on server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What type of application allows you to fully integrate React?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly