Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
React Projects

You're reading from   React Projects Build 12 real-world applications from scratch using React, React Native, and React 360

Arrow left icon
Product type Paperback
Published in Dec 2019
Publisher Packt
ISBN-13 9781789954937
Length 474 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Roy Derks Roy Derks
Author Profile Icon Roy Derks
Roy Derks
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Creating a Movie List Application in React 2. Creating a Progressive Web Application with Reusable React Components FREE CHAPTER 3. Build a Dynamic Project Management Board with React and Suspense 4. Build a SSR-Based Community Feed Using React Router 5. Build a Personal Shopping List Application Using Context API and Hooks 6. Build an Application Exploring TDD Using Jest and Enzyme 7. Build a Full Stack E-Commerce Application with React Native and GraphQL 8. Build a House Listing Application with React Native and Expo 9. Build an Animated Game Using React Native and Expo 10. Creating a Real-Time Messaging Application with React Native and Expo 11. Build a Full Stack Social Media Application with React Native and GraphQL 12. Creating a Virtual Reality Application with React 360 13. Other Books You May Enjoy

Summary

In this chapter, you've created a shopping list application that uses the context API and Hooks to pass and retrieve data, instead of a HOC. Context is used to store data and Hooks are used to retrieve and mutate data. With the context API, you can create more advanced scenarios for state management using the useReducer Hook. Also, you've recreated a situation where all of the data is stored globally and can be accessed from any component by creating a shared Context.

The context API will be used in the next chapter as well, which will show you how to build a hotel review application with automated testing using libraries such as Jest and Enzyme. It will introduce you to the multiple ways you can test your UI components created with React, and also show you how to test state management in your application using the context API.

...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime