React Study
Introduction to React
React is a JavaScript library for building user interfaces. It allows developers to create large web applications that can change data without reloading the page.
React vs Angular
- React is a Library (developed in JS) while Angular is a Framework (developed in TypeScript)
- React development and performance is faster than Angular
- React uses a virtual DOM to improve performance
- React has less memory consumption/footprint
- React has a less steep learning curve than Angular
- React doesn't enforce a specific architecture, while Angular has a predefined architecture and tooling
Single Page Application (SPA)
An application that loads a single HTML page and dynamically updates that page as the user interacts with the app.
Advantages of SPAs
- Fast: Similar performance to native apps
- Responsive: The app responds to user interactions (browser size changes)
- User-friendly
Functional Programming in JavaScript
- Functions are considered first-class citizens
- Functions can be created as variables of type function
- Functions can be passed as arguments to other functions