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.
2
Q
There are two packages you need to run Webpack. What are they?
A
webpack and webpack-cli
3
Q
What are loaders in Webpack?
A
Loaders give webpack the ability to process more than just JavaScript and JSON files.
4
Q
What does propTypes do?
A
- 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.
5
Q
Explain life cycles methods in React
A
6
Q
What is context in React
A
7
Q
A