Week 10 React Part 1 Flashcards

Key Terms in Videos

1
Q

Everything in React is a

A

component

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

React does not update the

A

DOM

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

React updates the

A

Virtual DOM

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

React was built and maintained by

A

Facebook

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

Components are

A

reusable pieces of code

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

bundle.js is created by

A

webpack

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

every component is a

A

class

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

every component a __________ method

A

render

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

to render React you need the __________ package

A

react-dom

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

to mount your React App to the DOM you use the _______ method

A

render()

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

The best practice is to create components in

A

separate file

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

to make a component visible to other code in your app you need to ___________ the component

A

export

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

mixing javascript and HTML is done through

A

JSX

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

class is __________ in JSX

A

className

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

wrap you return statements in

A

()

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

return is not a

A

function it is a keyword

17
Q

you can only return one

A

element

18
Q

to render a dummy tag use

A

React.Fragment

19
Q

Comments in JSX are made by

A

{/* */}

20
Q

comments in the render have to be between

A

the enclosing tags

21
Q

class names should begin with

A

capitals

22
Q

props are similar to an HTML

A

attribute

23
Q

__________ are the way we get data into our components

A

props

24
Q

props passed into a component that is not a string must be enclosed in

A

{ }

25
Q

to use a variable in JSX you use

A

{ }

26
Q

components are just an

A

object