Getting started with Addons
After completing the previous project about using React on server side, Mike's team got some free time before starting the next project. Mike decided to utilize this time by learning about React addons.
"Shawn, we got some free time. Let's use it to get started with React addons."
"What are React addons? Are they related to React core library?" Shawn asked.
"React addons are utility modules that are not a part of the React core library. However, they are blessed by the React team. In future, some of them might be included in the React core. These libraries provide helpers for writing immutable code, utilities for testing React apps, and ways to measure and improve the performance of React apps." explained Mike.
"Each addon has its own npm package, making it to simple to use. For example, to use the Update addon, we need to install and require its npm package."
$ npm install react-addons-update --save // src/App.js import Update from 'react-addons-update';...