React Day 2 Flashcards

1
Q

<p>If there is a button, it is a good time to use</p>

A

<p>a component.</p>

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

we use ……. instead of class

A

className

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

<p>we need the state to be outside of the ...</p>

A

<p>Event Listeners</p>

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

<p>We update state and then we</p>

A

<p>render the changes on the UI</p>

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

<p>Triangle =></p>

<p>- u...... i....</p>

<p>- we update ...</p>

<p>- we ... the changes on the ... from the ...</p>

A

<p>Triangle =></p>

<p>- user interaction</p>

<p>- we update state</p>

<p>- we render the changes on the UI from the state</p>

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

<p>here, we've got a function and a variable</p>

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

when index.js is created for e.g. Header, create a …….

A

styles.css

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

lesson from today:

1) we need to find a way to ….
2) naming convenetions is more of an …. than a ….
3) the reason why we break things down into 4) componenets, is there may be …. or …..

A

lesson from today:

1) we need to find a way to organise
2) naming convenetions is more of an art than a science
3) the reason why we break things down into componenets, is there may be actions or events

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

page 23 - very important!

A

very important

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

checkboxes, word to think about… (trigger word)

A

toggle

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

PROCESS - console.log constantly
line by line
problem solve

A

Process is the key

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

to render stuff on React, we use ….

A

.map

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