React Cookbook
上QQ阅读APP看书,第一时间看更新

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