0%

Make fact-based decisions by comparing different solutions and learning popular ways to manage state in React Native with clear guidelines and recommendations by a React Native expert

Key Features

  • Explore the big picture of state management in React Native using the most simplified version
  • Implement state management solutions by building a social media clone app
  • Compare different state solutions in a contained environment to choose the best fit for your future projects

Book Description

Managing state in a React Native app can be challenging as it is one of the most difficult concepts to grasp while learning React Native. This is because there are so many ways to do it, and because there is a lack of clear guidelines on what should be used and why.

Simplifying State Management in React Native is a comprehensive introduction for those who are new to creating robust React Native apps that will have you up to speed in no time. You'll get to grips with the different state management strategies and libraries available. As you progress through the chapters, you'll try out different solutions, as well as compare and choose which solution is perfectly suited to your future projects and personal preferences. Finally, you'll create a social media clone app using all the concepts and examples that you've learned in this book.

By the end of this book, you'll be able to take on existing projects that use various state management strategies and libraries, and confidently make decisions about state management.

What you will learn

  • Start out by going over the basic ReactJS “mindset”
  • Explore all that ReactJS has to offer to manage state in apps by building an app
  • Understand existing state management libraries such as Redux, MobX, XState, Jotai, and React Query
  • Decide which libraries you want to use in your apps
  • Design a social media app to fully understand state management
  • Try out all the solutions presented in the book in a social media clone app

Who this book is for

This book is for junior developers, React Native developers, and mobile app developers who are already using React Native, but are also on the lookout for advice and for a broader view to manage the state and changes in their applications. Basic knowledge of ReactJS and React Native, as well as familiarity with JavaScript and general mobile app development concepts are needed to grasp the topics covered in this book.

Table of Contents

  1. Simplifying State Management in React Native
  2. Contributors
  3. About the author
  4. About the reviewers
  5. Preface
  6. Part 1 – Learn the Basics: Intro to React, States, Props, Hooks, and Context
  7. Chapter 1: What are React and React Native?
  8. Chapter 2: Managing State in a Simple React App
  9. Part 2 – Creating a Real, Working App
  10. Chapter 3: Planning and Setting Up the Funbook App
  11. Chapter 4: Styling and Populating the Funbook App
  12. Part 3 – Exploring Various Libraries for State Management in React Native
  13. Chapter 5: Implementing Redux in Our Funbook App
  14. Chapter 6: Using MobX as a State Manager in a React Native App
  15. Chapter 7: Untangling Complex Flows in React Native Apps with XState
  16. Chapter 8: Integrating Jotai in a React Native App
  17. Chapter 9: Using React Query for Server-Side-Driven State Management
  18. Part 4 – Summary
  19. Chapter 10: Appendix
  20. Index
  21. Other Books You May Enjoy