Crash Course Flashcards

1
Q

What is React?

A

It is a JavaScript library that is used for building user interfaces

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

TRUE OR FALSE: React runs in the browser

A

TRUE

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

Is React referred to a front-end or back-end framework

A

Front-end

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

Why would you want to use React?

A

-Structure the “view” layer of your application. If you tried to build a large dynamic interface with vanilla JavaScript, it can get really messy.
-Reusable components with their own state
-JSX - Dynamic markup
-Interactive UIs with Virtual DOM
-Performance & testing
-Very popular in the industry

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

What is “state”?

A

It is an object that determines how a component renders and behaves

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

What is a React hook?

A

Functions that let us hook into the React state and lifecycle features from function components

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

What is JSX?

A

It’s a syntax extension to JavaScript. It’s just a shortcut for the React.createElement() API. It helps us generate the stuff that eventually spits out HTML. It’s like EJS

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