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
- What are React and React Native?
- Managing State in a Simple React App
- Planning and Setting Up the Funbook App
- Styling and Populating the Funbook App
- Implementing Redux in Our Funbook App
- Using MobX as a State Manager in a React Native App
- Untangling Complex Flows in React Native Apps with XState
- Integrating Jotai in a React Native App
- Using React Query for Server-Side-Driven State Management
- Appendix
Frontend and mobile developer with experience reaching as far as Flash and websites laid out with tables. Aleks has seen her fair share of diverse codebases, bugs, and Jira tickets. Aleks studied French literature, but after graduating she decided to opt for a career in IT, which has always interested her. She started out creating websites for friends and family and soon she landed her first paying job at a software house in Sopot, Poland. She soon learned about React Native and started writing her first app back in 2018. She’s been working on both React JS and React Native since then, however, React Native is strongly favored. She personally published a weather app, and she participates in OSS projects, helping out with PRs, issues, and discussions. She recently started working for Callstack, the biggest React Native software house in Poland.