What is a Library and Why Would We Use One?
When it comes to web-based applications, there are two very different places code can exist: in the user’s browser (front-end) and on the host’s server (back-end).
For web development, consider the front end as what the user interacts with and sees, while the back end contains the logic and manipulations that the user doesn’t need to worry about. Similar to how an old mechanical clock works. The front end would be the face with the 12 numbers and the two moving hands. The user only needs the clock face to determine the time. The back end for the clock would be the various cogs, wheels, and power source.
- React is flexible enough that it can be used for cross-platform work. This means that React can be used to develop applications for mobile platforms in addition to web applications.
- React is built on components, which are blocks of reusable code that we as developers write. The way React uses components makes it easy for us to call our components and reuse them in the application as we need to.
These are some of the reasons why companies, such as Netflix and Instacart, choose React. Let’s dive into the final reason and learn more about components in React.