- The React Workshop
- Brandon Richey Ryan Yu Endre Vegh Theofanis Despoudis Anton Punith Florian Sloot
- 190字
- 2021-06-11 18:28:34
Introduction
In React, code is written in the form of entities called components that help us organize code modularly. This modular structure allows apps to be scalable and maintainable. React.js, as a JavaScript library, has achieved a lot of popularity in the web domain and has rightly been enjoying this success because it allows developers to build scalable apps rapidly while employing industry best practices.
In the previous chapters, we have largely worked with a specific type of component in React called class components. When the React framework emerged in the scene, the use of class-based components increased. During the early days of React, even before classes were available to us in JavaScript (ES6), React implemented its own take on classes with React.createClass. However, starting with React 0.14.0, ES6 component classes extended React.Component. And so, components can now be defined as Class components that use JavaScript classes to extend React.Component and Function components that are written as JavaScript functions. React works with React DOM, which renders these components in a chosen root element in the HTML DOM to render the React app. Let's start with the structure of React components.
- Java高并發(fā)核心編程(卷2):多線(xiàn)程、鎖、JMM、JUC、高并發(fā)設(shè)計(jì)模式
- Leap Motion Development Essentials
- Visual Basic程序設(shè)計(jì)教程
- 網(wǎng)店設(shè)計(jì)看這本就夠了
- 從0到1:Python數(shù)據(jù)分析
- Python之光:Python編程入門(mén)與實(shí)戰(zhàn)
- Node.js 12實(shí)戰(zhàn)
- 零基礎(chǔ)輕松學(xué)C++:青少年趣味編程(全彩版)
- C語(yǔ)言程序設(shè)計(jì)
- Microsoft HoloLens By Example
- JavaWeb從入門(mén)到精通(視頻實(shí)戰(zhàn)版)
- 高性能MVVM框架的設(shè)計(jì)與實(shí)現(xiàn):San
- C++ Windows Programming
- 匯編語(yǔ)言程序設(shè)計(jì)
- 設(shè)計(jì)模式之禪