React Flashcards

1
Q

useEffect()

A

Rough equivalent of componentDidMount() for React hooks. Runs after every render.

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

React Lifecycle Methods: Mounting

A

These methods are called in the following order when an instance of a component is being created and inserted into the DOM:

constructor()
static getDerivedStateFromProps()
render()
componentDidMount()

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

React Lifecycle Methods: Updating

A

An update can be caused by changes to props or state. These methods are called in the following order when a component is being re-rendered:

static getDerivedStateFromProps()
shouldComponentUpdate()
render()
getSnapshotBeforeUpdate()
componentDidUpdate()
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

React Lifecycle Methods: Unmounting

A

This method is called when a component is being removed from the DOM:

componentWillUnmount()

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

Server Side Rendering

A

Server-side rendering (SSR) is an application’s ability to convert HTML files on the server into a fully rendered HTML page for the client. The web browser submits a request for information from the server, which instantly responds by sending a fully rendered page to the client.

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

Client Side Rendering

A

With a client-side rendering solution, you redirect the request to a single HTML file and the server will deliver it without any content (or with a loading screen) until you fetch all the JavaScript and let the browser compile everything before rendering the content.

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