react Flashcards

1
Q

what are some frontend design principles.

1.) —— This principle is used to create a clear and organized flow of content on a web page.

2.) ——— in design helps users understand how to interact with a website or application.

3.) —– is the practice of designing websites and applications to be usable by people with disabilities.

A

Visual Hierarchy:

Consistency:

Accessibility:

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

—— is a powerful front end library, used for creating front end user interfaces

————Open-source run-time environment used to execute Javascript outside of a web browser.

——– is a built in package manager. Like any other package manager, it allows for downloading and installing frameworks/libraries for development.

A

React

NodeJS

Node Package Manager (npm)

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

—— is a built-in React object used to contain data or information about the component.

A

State

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

are functions in React that allow you to “hook” into React state and lifecycle methods from within functional components.

A

Hooks

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

————allows you to store and change state inside of a function component.

—————–allows you to perform some logic at specific points of the applications life

A

useState
useEffect

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

based components are simply TSX classes that extend React.Com.
ponent.

A

Class

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

Class Components —

The —— is primarily used for initializing data in the component

——– is primarily used for grabbing some data after the page loads

——– allows us to execute code when a component updates its view

A

lifecycle

constructor

componentDidMount

componentDidUpdate

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

——— A front end application architectural design pattern designed by Facebook to work better with React’s unidirectional data flow.

it is used to solve the problem of managing state in large-scale single-page web applications.

A

flux

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

The Flux architecture consists of four main components:

A

Dispatcher:
store
Actions
view

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

——– is the central hub of the Flux architecture. It receives actions from the application and dispatches them to the appropriate stores.

A

The Dispatcher

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

——— are responsible for managing the application state and updating the view. Stores are the only components that are allowed to update the state.

A

Stores

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

——- are responsible for rendering the user interface and responding to user input. Views listen to changes in the stores and update themselves accordingly.

A

Views

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

——- are plain JavaScript objects that represent a user interaction with the application. Actions are dispatched to the Dispatcher, which then sends them to the appropriate stores

A

Actions

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

is an implementation of the Flux design pattern for JS/TS applications, used for managing and centralizing application state.

it is used to make asynchronous calls because flux does not work well with async logic flows

A

Redux

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

———- is A library of additional support functions that can make using redux easier and conform more to best practices.

——– is The official library for using Redux with React. Installable with npm.
For use with things like useDispatch, useSelector

A

Redux Toolkit

React-Redux

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

——— actually lets us dispatch things (this is our dispatcher)
-
——-let components access the store

A

useDispatch

useSelector

17
Q

redux application flow

1) Create a base —- when the application begins.

2) Create your ——-

3) The —- is then dispatched to the —- and to the —– that will handle that —— type

4) The —— then determine how to handle the action based on its type. they are generally switch statements that switch on the type.

5)The —– returns the new —, then the — of the store is updated.

A

store
Actions

action

store

reducer

action

reducers
reducer

state

18
Q

t/f actions have a “input” field which defines the action being taken. If the action has data that needs to be transported to the store, that data is put in the “submit” field.

A

false
have a “type” field which defines the action being taken. If the action has data that needs to be transported to the store, that data is put in the “payload” field.

19
Q

Is it necessary to keep all the component states in the Redux store?

A

NO