small medium large xlarge

Test-Driven React: Find Problems Early, Fix Them Quickly, Code with Confidence

by

Cover image for Test-Driven React

Test-Driven React

Find Problems Early, Fix Them Quickly, Code with Confidence

by

You work in a loop: write code, get feedback, iterate. The faster you get feedback, the faster you can learn and become a more effective developer. Test-Driven React helps you refine your React workflow to give you the feedback you need as quickly as possible. Write strong tests and run them continuously as you work, split complex code up into manageable pieces, and stay focused on what’s important by automating away mundane, trivial tasks. Adopt these techniques and you’ll be able to avoid productivity traps and start building React components at a stunning pace!

Customer Reviews

Test-Driven React is a great hands-on introduction to the latest technologies in front-end development. Even if you have little experience with React and frontend testing, the detailed examples in this book will guide you every step of the way to creating working and tested code.

- Ludovico Fischer

Author of "React for Real"

See All Reviews

Choose Your Format(s)

  • $37.95 In Stock

    Save $11.95 on the combo pack.

  • $29.95 In Stock
  • $19.95 In Stock
  • Ebooks are DRM free.

  • Ebook delivery options.

What You Need

You’ll need a working knowledge of JavaScript and a computer running macOS, Windows, or Linux.

Contents & Extracts

  • Introduction
    • What’s in This Book
    • What’s Not in This Book
    • How to Read the Code Examples
    • Online Resources
    • Mantra: Code with Joy
  • Test-Driven Development with Jest
    • Introducing Jest excerpt
    • The Tao of Test-Driven Development
    • Mantra: Red, Green, Repeat
    • Example Fizz Buzz Solution
  • Integrated Tooling with VS Code
    • Editing with VS Code
    • Checking Code Quality with ESLint
    • Beautifying Code with Prettier
    • Real-Time Testing with Wallaby
    • Mantra: Live in the Code
    • Example Palindrome Finder Solution
  • Testing React with Enzyme excerpt
    • Starting a React Project
    • Testing Simple Components with Enzyme
    • Adding a Jest Setup File
    • Testing Nested Markup
    • Testing Stateful Components
    • Mantra: Test One Piece at a Time
  • Styling in JavaScript with Styled-Components excerpt
    • Packaging an App with webpack
    • Getting Started with Styled-Components
    • Testing Styled Components
    • Mantra: Actively Seek Feedback
  • Refactoring with Higher-Order Components
    • Making Higher-Order Components
    • The Controllable Pattern
    • Stacking Higher-Order Components
    • Inspecting Components with React Devtools
    • Mantra: Keep the Unit Small
  • Continuous Integration and Collaboration
    • Setting Up Travis CI
    • Git Hooks with Husky
    • Adding Docs with Storybook
    • Mantra: Actively Automate

Author

Trevor Burnham is an engineer at HubSpot in Cambridge, MA. His previous books include CoffeeScript and Async JavaScript, both published by PragProg. You can follow him on Twitter as @trevorburnham.

You are free to copy your ebooks between your devices, archive them, print them, and so on.

You just can't give them to other people or sell them.
Ebooks can be delivered via email, Dropbox, and Google Drive (you'll need accounts on both our system and the target system for the last two options).