M3- What is React? Flashcards

1
Q

What is the difference between building something from scratch and using pre-made components?

A

In software development, writing everything from scratch can be time-consuming and complex. React provides pre-built components, making it faster and easier to create user interfaces.

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

What is React?

A

React is a JavaScript library—a collection of pre-written code that helps developers build user interfaces (UIs) efficiently.

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

When was React released?

A

React was released in 2013 and is maintained by a community of developers and companies. It’s open-source, so anyone can contribute to it.

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

What types of applications can you build with React?

A
  • Single-Page Applications (SPAs): These are web applications where only part of the page updates when you interact with it, instead of reloading the entire page. React is ideal for building SPAs.
  • Mobile Applications: You can also build mobile apps using React Native, a framework that extends React’s capabilities to mobile devices.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Is React used alone, or with other tools?

A

React is mainly used for building the user interface, but an application often needs more than that, like navigation and data fetching.
React is often combined with other JavaScript libraries, like React Router for navigation and Axios for fetching data from a server.

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

Why is React so useful?

A
  • Less Code: React allows developers to write less code to achieve the same or even more functionality.
  • Easier Maintenance: With less code and reusable components, maintaining and testing your application becomes easier.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Are there tools that work with React to improve performance?

A

Yes. There are many tools available that help you understand how React is running your code and where you can improve performance.

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

What are React components?

A

A React component is a reusable, self-contained piece of a user interface.

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

How do React components improve efficiency?

A
  • Reusability: Once you create a component, like a user profile picture, you can reuse it throughout your application.
  • Consistency: Reusing components ensures that your application is consistent, reducing the likelihood of errors.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the React ecosystem like?

A
  • Growing Community: React has a large and growing ecosystem of open-source libraries that provide pre-made components for almost anything you might need, like video players or maps.
  • Continuous Improvement: The React community continuously adds new features and improvements to the library.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly