SIMPLIFYING STATE MANAGEMENT IN REACT NATIVE master state management from hooks and context through to Redux, MobX, XState and Jotai and React Query /
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...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Publishing Ltd.,
2023.
|
Edición: | 1st edition. |
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Cover
- Title Page
- Copyright and Credits
- Contributors
- Table of Contents
- Preface
- Part 1
- Learn the Basics: Intro to React, States, Props, Hooks, and Context
- Chapter 1: What are React and React Native?
- Understanding the history of ReactJS
- The predecessors
- And then there was React
- Thinking in React (the React mindset)
- Understanding cross-platform software development
- Going over the history of React Native
- Reviewing examples of popular apps using React Native
- Summary
- Chapter 2: Managing State in a Simple React App
- Technical requirements
- What is state and how is it different from props?
- What are stateful and stateless components?
- What are hooks and why use them?
- Which hooks should you know?
- Setting up the example app
- Environment setup
- App structure
- Summary
- Further reading
- Part 2
- Creating a Real, Working App
- Chapter 3: Planning and Setting Up the Funbook App
- Technical requirements
- Planning the needed surfaces and components
- Planning data flows in the app
- Getting comfortable previewing and debugging the app
- Summary
- Further reading
- Chapter 4: Styling and Populating the Funbook App
- Technical requirements
- Creating and styling components
- Pulling in data for the app
- Summary
- Further reading
- Part 3
- Exploring Various Libraries for State Management in React Native
- Chapter 5: Implementing Redux in Our Funbook App
- Technical requirements
- What is Redux? A brief history
- Installing and configuring Redux
- Dispatching actions
- Adding Redux functionalities to the app
- User login state walkthrough
- Using Redux for liked images
- Combining various pieces of global state
- Taking advantage of Redux Toolkit for creating actions
- Fetching data
- Replacing the context
- Debugging
- Summary
- Further reading
- Chapter 6: Using MobX as a State Manager in a React Native App
- Technical requirements
- Going over MobX concepts
- Configuring MobX in the Funbook app
- Using MobX for FavoritedImages
- Creating the store
- Fetching data
- Adding actions
- Deriving data from state
- Summary
- Further reading
- Chapter 7: Untangling Complex Flows in React Native Apps with XState
- Technical requirements
- What are finite state machines?
- What is XState
- high-level concepts
- Configuring XState in the Funbook app
- Using XState for the FavoritedImages surface
- Configuring context and components
- Fetching image data
- Managing the image in the image modal
- Liking images
- Summary
- Further reading
- Chapter 8: Integrating Jotai in a React Native App
- Technical requirements
- What is Recoil and an atomic state?
- What is Jotai?
- Configuring Jotai in the Funbook app
- Using Jotai for ListOfFavoritedImages
- Fetching data with Jotai
- Reading and writing atoms
- Adding read-write functionality to the imageListAtom
- Implementing the Like button
- Summary
- Further reading