Title: From Local State to Global Control
I. Introduction
- Talk Title: "From Local State to Global Control"
- About the Speaker
- Author of six or seven books, including "The React Cookbook"
- Founder of HearScreen, a UK-based company
- Social media and URL link: linktree.do.griffiths
- Providing Slides and Useful Links
- Talk's Structure and Purpose
II. Why the Speaker Wrote "The React Cookbook"
- Background as a Consultant Working on React Projects
- Importance of Experience and Problem-Solving Examples
- "The React Cookbook" as a Collection of Problems and Solutions
- Target Audience: Professional Developers and Newcomers to React
III. Levels of State in React
- Introduction to the Concept of State in React
- Four Different Levels of State
- Component State
- Complex Component State
- Reducers as a Solution for Complex Component State
- Advantages of Using Reducers
- Discussion of When to Use Reducers and Their Potential Overhead
IV. Component State
- Explanation of Component-Based Architecture in React
- Demonstrating the Use of State in a Simple React Component
- Importance of Keeping Components Simple and Manageable
- Challenges of Complex Logic in Components
- Exploring the Option of Separating Complex Logic into Reducers
- Testing and Advantages of Using Reducers
- Creating a Reusable "Undo" Functionality with Reducers
V. Conclusion
- Recap of the Key Points Discussed
- Emphasizing the Importance of Choosing the Right State Management Approach
- Encouraging Developers to Use Reducers Wisely
- Acknowledgment of Potential Benefits in Testing and Maintainability
VI. Q&A Session
- Inviting Questions from the Audience
- Addressing Any Queries or Concerns Raised by the Audience
VII. Closing Remarks
- Thanking the Audience for Their Participation
- Reminding the Audience About Access to Slides and Code
- Encouraging Further Exploration of React State Management Techniques
- Providing Contact Information for Further Inquiries