Interview prep Flashcards

1
Q

What does webpack do?

A

At its core, webpack is a module bundler. It examines all of the modules in your application, creates a dependency graph, then intelligently puts all of them together into one or more bundle(s) that your index.html file can reference.

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

There are two packages you need to run Webpack. What are they?

A

webpack and webpack-cli

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

What are loaders in Webpack?

A

Loaders give webpack the ability to process more than just JavaScript and JSON files.

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

What does propTypes do?

A
  1. It validated the type of the props that are being passed to a component So that the component runs correctly.

The package we’ll use to declare types for our props is, naturally, called prop-types.

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

Explain life cycles methods in React

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

What is context in React

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