Book Image

Lightning-Fast Mobile App Development with Galio

By : Alin Gheorghe
Book Image

Lightning-Fast Mobile App Development with Galio

By: Alin Gheorghe

Overview of this book

Galio is a free open source React Native framework that enables beginner-level programmers to quickly build cross-platform mobile apps by leveraging its beautifully designed ready-made components. This book helps you to learn about React Native app development while building impressive out-of-the-box apps with Galio. Lightning Fast Mobile App Development with Galio takes a hands-on approach to implementation and associated methodologies that will have you up and running and productive in no time. Complete with step-by-step explanations of essential concepts, practical examples, and self-assessment questions, you will begin by exploring the basics of React Native and understanding how Galio works. As you make progress, you'll learn how to initialize and configure a React Native app and get to grips with the basics of React Native development. You'll also discover how packages work and how to install Galio as the main dependency, along with understanding how and why Galio helps you to develop apps with ease. Finally, you'll build three practical and exciting apps using React Native and Galio. By the end of this app development book, you'll have learned how to use Galio to quickly create layouts and set up React Native projects for your personal ideas.
Table of Contents (14 chapters)

What is state?

Now that we've got to this point, it's imperative for us moving forward to understand what state is and how it works inside a React component. Once we learn this, we'll be fully capable of using React to the best of our abilities. This unlocks the missing link we've had until now, more exactly, it will unlock the key to making our mobile apps more dynamic.

We learned about props in Chapter 3, The Correct Mindset. It's the technique we use to pass data from one component to another. Think of props as the first level of a component. We need to level up our component creation skills so the most logical step now before going into any practical challenges is to learn about state.

Traditionally, in order to be able to use state inside our components, we had to use class components. Later versions of React, we got introduced to being able to use state even in functional components with something called hooks. We'll discuss hooks more right...