0%

Book Description

This book is a collection of in-depth guides to some some of the tools and resources most used with React, such as Jest and React Router, as well as a discussion about how React works well with D3, and a look at Preact, a lightweight React alternative. These tutorials were all selected from SitePoint's React Hub. It contains:

  • Getting Started with Redux by Michael Wanyoike
  • React Router v4: The Complete Guide by Manjunath M
  • How to Test React Components Using Jest by Jack Franklin
  • Building Animated Components, or How React Makes D3 Better by Swizec Teller
  • Using Preact as a React Alternative by Ahmed Bouchefra

Table of Contents

  1. React: Tools & Resources
  2. Notice of Rights
  3. Notice of Liability
  4. Trademark Notice
  5. About SitePoint
  6. Preface
    1. Who Should Read This Book
    2. Conventions Used
  7. Chapter 1: Getting Started with Redux
    1. Prerequisites
    2. What is Redux?
    3. Understand Immutability First
    4. Setting up Redux
    5. Organizing Redux Code
    6. Debugging with Redux tools
    7. Integration with React
    8. Summary
  8. Chapter 2: React Router v4: The Complete Guide
    1. Introduction
    2. Overview
    3. Setting up React Router
    4. React Router Basics
    5. Nested Routing
    6. Protecting Routes
    7. Summary
  9. Chapter 3: How to Test React Components Using Jest
    1. Sample Application
    2. To TDD or Not to TDD?
    3. Introducing Jest
    4. Installing and Configuring Jest
    5. Testing Business Logic
    6. Rerunning Tests on Changes
    7. Testing React Components
    8. Better Component Testing with Snapshots
    9. Conclusion
  10. Chapter 4: Building Animated Components, or How React Makes D3 Better
    1. Is React Worth It?
    2. Benefits of Componentization
    3. A Practical Example
    4. You Know the Basics!
    5. In Conclusion
  11. Chapter 5: Using Preact as a React Alternative
    1. Why Use Preact?
    2. Pros and Cons
    3. Getting Started with Preact CLI
    4. Demystifying Your First Preact App
    5. Preact Compatibility Layer
    6. Conclusion
18.218.168.16