Functional Architecture with React and Redux
Author | : Cristian Salcescu |
Publisher | : |
Total Pages | : 148 |
Release | : 2020-02 |
ISBN-10 | : 9798607681111 |
ISBN-13 | : |
Rating | : 4/5 ( Downloads) |
Download or read book Functional Architecture with React and Redux written by Cristian Salcescu and published by . This book was released on 2020-02 with total page 148 pages. Available in PDF, EPUB and Kindle. Book excerpt: If you want to learn React and Redux by example this is a book you would like. We are going to build several applications with an incremental level of complexity by going through the same steps. The unidirectional flow implies getting the initial state, showing it to the user using the view functions, listening for actions, updating the state based on those actions, and rendering the updated state back to the user again. In all application we will identify these concepts: The state - the data that is stored and can change. The views - functions transform the data into HTML. React makes it easier to create view functions that take input data and - return the visual representation of it using an XML-like syntax called JSX. Actions - plain data objects used to express user interaction. The updaters - functions transform the state. They receive the current state and an action and return the new state. The Redux library provides a functional approach for managing state using pure update functions. From simple to complex, we are going to build: The Counter app A Sidebar The Color Search app The Loan Calculator app The Toast Notification module The Weather Forecast app The Hacker News Client A Show More component The NYT Client A Fetch module The book takes the approach of repetition as the key to learning.