Simplifying State Management in React Native: Master state management from hooks and context through to Redux, MobX, XState, Jotai and React Query
by Aleksandra Desmurs-Linczewska(Author)
Publisher finelybook 出版社: Packt Publishing (January 13, 2023)
Language 语言: English
Print Length 页数: 202 pages
ISBN-10: 1803235039
ISBN-13: 9781803235035
Book Description
By finelybook
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
By finelybook
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