Conquering Components and JSX

In this chapter, the following recipes will be covered:

  • Creating our first React component
  • Organizing our React application
  • Styling a component with CSS classes and inline styles
  • Passing props to a component and validating them with PropTypes
  • Using local state in a component
  • Making a functional or stateless component
  • Understanding React lifecycle methods
  • Understanding React Pure Components
  • Preventing XSS vulnerabilities in React

Get React Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.