Main Flashcards

1
Q

A DOM is a tree of html ____.

A

Nodes

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

React’s virtual DOM is really just a tree of ______ .

A

React elements

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

A virtual DOM node is basically an object that stores an element’s ______.

A

attributes and content

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

ReactDOM syncs the virtual DOM with the real DOM through a process called ____ .

A

reconciliation

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

The render() function creates ____ .

A

A tree of React elements

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

The process of comparing the current virtual DOM (tree of React elements) to the previous virtual DOM is called ____ .

A

diffing

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

React is an ____ JavaScript library created by ____ that is used to build complex, interactive ____ for ____ and ____ applications.

A

open-sourced
Facebook
web
mobile

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

When compared to the MVC architecture, React is for which part?

A

V (view)

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

Angular enforces opinions on the overall ____ of an application, whereas React is only concerned with the ____ .

A

view

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

React uses JSX for building HTML, whereas Angular uses ____ .

A

templates, an extension of HTML

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

Angular has opinionated dependency injection. Some of these include ____ , ____ , ____ , and ____ . (FRAH)

A

form handling
routing & navigation
animations
http api

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

React is really a UI library, whereas Angular is a full-featured ____ .

A

framework

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

One downside to React vs Angular, is that you have to decide which ____ to use for critical features, and you have to manage ____ to them.

A

library dependencies, updates

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

React has one-way data binding, whereas Angular has ___ data binding.

A

two-way

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

List the three phases of the component lifecycle.

A

mounting, updating, un-mounting

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

Hooks are ____ that give you access to ____ and ____ features within ____ components. They are not available in ____ components.

A

functions
state, lifecycle
functional
class-based

17
Q

One big advantage to using hooks over traditional class-based methods is that they allow you to ____ state and ____ logic between different ____ .

A

reuse
lifecycle
components

18
Q

Hooks enable developers to avoid the use of two advanced methods of sharing stateful logic between components. These are referred as ____ and ____ .

A

Higher Order Components

render props