The most basic thing you can do with a UI is display some data. React makes it easy to display data and automatically keeps the interface up-to-date when the data changes.
ReactTestUtils makes it easy to test React components in the testing framework of your choice (we use
React is usually quite fast out of the box. However, in situations where you need to squeeze every ounce of performance out of your app, it provides a shouldComponentUpdate
It's a common pattern in React to wrap a component in an abstraction. The outer component exposes a simple property to do something that might have more complex implementation
shallowCompare is a helper function to achieve the same functionality as PureRenderMixin while using ES6 classes with React. If
One of the first questions people ask when considering React for a project is whether their application will be as fast and responsive as an equivalent non-React version. The
by Pete Hunt React is, in my opinion, the premier way to build big, fast Web apps with JavaScript. It has scaled very well for us at Facebook
If you know all the properties that you want to place on a component ahead of time, it is easy to use JSX:
We'll be building a simple but realistic comments box that you can drop into a blog, a basic version of the realtime comments offered by Disqus, LiveFyre or Facebook comments
So far, we've looked at how to write a single component to display data and handle user input. Next let's examine one of React's finest features: composability.
Page 2 of 3