Book Image

Flux Architecture

By : Adam Boduch
Book Image

Flux Architecture

By: Adam Boduch

Overview of this book

Whilst React has become Facebook’s poster-child for clean, complex, and modern web development, it has quietly been underpinned by its simplicity. It’s just a view. The real beauty in React is actually the architectural pattern that handles data in and out of React applications: Flux. With Flux, you’re able to build data-rich applications that engage your users, and scale to meet every demand. It is a key part of the Facebook technology stack that serves billions of users every day. This book will start by introducing the Flux pattern and help you get an understanding of what it is and how it works. After this, we’ll build real-world React applications that highlight the power and simplicity of Flux in action. Finally, we look at the landscape of Flux and explore the Alt and Redux libraries that make React and Flux developments easier. Filled with fully-worked examples and code-first explanations, by the end of the book, you'll not only have a rock solid understanding of the architecture, but will be ready to implement Flux architecture in anger.
Table of Contents (21 chapters)
Flux Architecture
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Summary


The focus of this chapter was on the view components of our Flux architecture and how they're loosely-coupled to the point that we can substitute rendering technologies. We started with a discussion on React itself and what makes it a good fit for Flux architectures. Then, we switched gears and covered the potential downsides of using ReactJS.

We spent some time implementing views that leveraged both jQuery and Handlebars. These are two mature technologies that many developers are familiar with and serve as a good jumping off point for implementing a Flux architecture. However, there are strong motivations for anyone implementing Flux to look at React as the view technology of choice.

We wrapped the chapter up with a discussion on using VanillaJS to render our view components. There's no sense in rushing into using a particular technology until we understand the ramifications of that choice. There's always going to be newer and better view libraries, and Flux architectures make it...