M3- What is React? Flashcards
What is the difference between building something from scratch and using pre-made components?
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.
What is React?
React is a JavaScript library—a collection of pre-written code that helps developers build user interfaces (UIs) efficiently.
When was React released?
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.
What types of applications can you build with React?
- 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.
Is React used alone, or with other tools?
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.
Why is React so useful?
- 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.
Are there tools that work with React to improve performance?
Yes. There are many tools available that help you understand how React is running your code and where you can improve performance.
What are React components?
A React component is a reusable, self-contained piece of a user interface.
How do React components improve efficiency?
- 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.
What is the React ecosystem like?
- 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.