![]() Thus in practice, using developing React apps requires using a large number of different development tools-just getting setup and started is one of major hurdles in learning React! However, React makes use of a significant amount of advanced and custom JavaScript syntax (described below), including extensive use of ES6 Modules. React is a JavaScript library similar to those discussed in previous chapters-you load the library and then can call upon its methods. This book introduces and emphasizes an approach that prioritizes clarity of concepts and readability of code, rather than conciseness of syntax or use of advanced options. Moreover, the “style” in which React is written has also evolved over time as new features are added to both the React library and the JavaScript language. React has gone through a couple of different major versions in its short life. Note that this book more or less follows the approach used by Facebooks’s Intro to React Tutorial. Some general resources are included at the end of the chapter, but in general we recommend you start with the official documentation, particularly the set of main concepts. This means that React is generally very well documented there are hundreds of tutorials, videos, and examples for building React applications (of which this chapter will be yet another). Check out TodoMVC for an example of the same application in each!). React is currently the most popular “framework” for building large-scale web applications (its chief competitors being Angular and Vue.js, though there are scores of similar frameworks that are also used. Moreover, components are usually associated with some set of data, and React will automatically “re-render” (show) the updated component when the data changes-and to do so in a computationally efficient manner. It does this by enabling you to declare a web app in terms of different components (think: “things” on a web page) that can be independently managed-this lets you design and implement web apps at a higher level of abstraction. However, React was created to make it much easier to define and manipulate lots of different parts of the DOM, and to do so quickly (in terms of computer speed). At its core, React allows you to dynamically generate and interact with the DOM, similar to what you might do with jQuery. React is “a JavaScript library for building user interfaces” developed by Facebook (though it is released as open-source software). This chapter introduces the React JavaScript library. Lifecycle Example: Fetching Data via AJAX.C.2 Handling Events in Class Components.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |