React: Tools & Resources

 
 
SitePoint (Verlag)
  • erschienen am 7. November 2017
  • |
  • 110 Seiten
 
E-Book
978-1-4920-6539-5 (ISBN)
 
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 WanyoikeReact Router v4: The Complete Guide by Manjunath MHow to Test React Components Using Jest by Jack FranklinBuilding Animated Components, or How React Makes D3 Better by Swizec TellerUsing Preact as a React Alternative by Ahmed Bouchefra
  • Englisch
  • Sebastopol
  • |
  • USA
978-1-4920-6539-5 (9781492065395)
weitere Ausgaben werden ermittelt
  • Intro
  • React: Tools & Resources
  • Notice of Rights
  • Notice of Liability
  • Trademark Notice
  • About SitePoint
  • Table of Contents
  • Preface
  • Who Should Read This Book
  • Conventions Used
  • Code Samples
  • Tips, Notes, and Warnings
  • Hey, You!
  • Ahem, Excuse Me ...
  • Make Sure You Always ...
  • Watch Out!
  • Getting Started with Redux
  • by Michael Wanyoike
  • Prerequisites
  • What is Redux?
  • Understand Immutability First
  • Setting up Redux
  • Organizing Redux Code
  • Debugging with Redux tools
  • Integration with React
  • Summary
  • React Router v4: The Complete Guide
  • by Manjunath M
  • Introduction
  • React Router is a Third-party Library
  • Overview
  • Setting up React Router
  • React Router Basics
  • Router
  • index.js
  • A Router Component Can Only Have a Single Child Element
  • history
  • Links and Routes
  • Demo 1: Basic Routing
  • src/App.js
  • Nested Routing
  • Path and match
  • Switch Component
  • Demo 2: nested routing
  • src/App.js
  • src/Category.jsx
  • Demo 3: Nested routing with Path parameters
  • src/Products.jsx
  • src/Products.jsx
  • src/Product.jsx
  • Protecting Routes
  • Redirect
  • Custom Routes
  • src/App.js
  • src/App.js
  • src/Login.jsx
  • Demo 4: Protecting Routes
  • CodeSandbox Example
  • Summary
  • How to Test React Components Using Jest
  • by Jack Franklin
  • Sample Application
  • To TDD or Not to TDD?
  • This Tutorial Focuses on Testing Front-end Code
  • Introducing Jest
  • Installing and Configuring Jest
  • Testing Business Logic
  • if You're Following Along
  • Rerunning Tests on Changes
  • Testing React Components
  • Better Component Testing with Snapshots
  • Conclusion
  • Building Animated Components, or How React Makes D3 Better
  • by Swizec Teller
  • Is React Worth It?
  • Benefits of Componentization
  • A Practical Example
  • The Alphabet Component
  • ReactTransitionGroup
  • The Letter Component
  • componentWillEnter
  • componentWillLeave
  • componentWillReceiveProps
  • render
  • You Know the Basics!
  • In Conclusion
  • Using Preact as a React Alternative
  • by Ahmed Bouchefra
  • Why Use Preact?
  • Pros and Cons
  • Preact Pros
  • React Pros
  • React Cons
  • License Concerns
  • Preact Cons
  • Getting Started with Preact CLI
  • Demystifying Your First Preact App
  • Preact Compatibility Layer
  • Conclusion

Download (sofort verfügbar)