Chapter 20. Introduction to React
When using JavaScript, HTML, and CSS to build dynamic websites, there comes a time when the creation of the code required to handle the frontend of your websites and apps can become cumbersome and overly verbose, slowing the speed of project development and potentially introducing common bugs.
This is where frameworks come in. Of course, since 2006 there’s been jQuery to help us out, and consequently it’s still installed on many production websites, although these days JavaScript has grown sufficiently in scope and flexibility that programmers need to rely on frameworks like jQuery a lot less. Also, the technology continually improves, and now there are a number of excellent options, such as Angular and, as discussed here, my preferred favorite, React.
jQuery was designed to simplify HTML DOM tree traversal and manipulation, as well as event handling, CSS animation, and Ajax, but some programmers, such as the development team at Google, felt it still wasn’t powerful enough, and they came up with Angular JS in 2010, which evolved into Angular in 2016, and which overtook jQuery around 2019.
Angular uses a hierarchy of components as its primary architectural characteristic. Google’s massive AdWords platform is powered by Angular, as are Forbes, Autodesk, Indiegogo, UPS, and many others, and it is indeed extremely powerful.
Facebook had a different vision and came up with React (also known as React JS) as its framework for the development of single-page ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access