30
React / Redux Introduction to JavaScript components and state management

React.js and Redux overview

Embed Size (px)

Citation preview

Page 1: React.js and Redux overview

React / Redux

Introduction to JavaScript components and state management

Page 2: React.js and Redux overview

It’s an awesome time to be a front-end developer

Page 3: React.js and Redux overview

Choose your JavaScript framework

Page 4: React.js and Redux overview

Flexible app architecture

API 1

API 2

Page 5: React.js and Redux overview

More vanilla JS

● ES2015 Modules● Native JavaScript APIs● Classes and Functions

Page 6: React.js and Redux overview
Page 7: React.js and Redux overview

ABL always be learning

Page 8: React.js and Redux overview

Tooling

Page 9: React.js and Redux overview

Functional Programming

OMG! They’re still using HTML tables.

Functional Programming

Page 10: React.js and Redux overview

Reduce

Page 11: React.js and Redux overview

Pure Functionsgiven the same arguments, they always return the same value, without producing any observable side effect

Page 12: React.js and Redux overview

Higher-Order Functionsfunction that can take another function as an argument, or that returns a function as a result

Page 13: React.js and Redux overview

Why React.js ?

Page 14: React.js and Redux overview

Smart components

Page 15: React.js and Redux overview
Page 16: React.js and Redux overview

Dumb components

Page 17: React.js and Redux overview
Page 18: React.js and Redux overview

React.js ecosystem

Page 19: React.js and Redux overview

React Native Platforms

Page 20: React.js and Redux overview

State management

Page 21: React.js and Redux overview

Redux

Predictability of outcome

Maintainability

Server side rendering

Ease of testing

One way data flow

Page 22: React.js and Redux overview

Actions Reducers StorePure functions that take the current state of the application and an action and then return a new state.

Store is the object that holds the application state. Any action returns a new state via reducers.

Actions are events, which send data to store. Actions are simple objects with type and payload.

Actions Reducers Store

Page 23: React.js and Redux overview

Actions

Page 24: React.js and Redux overview

Reducers

Page 25: React.js and Redux overview

Store

Page 26: React.js and Redux overview

Redux Data Flow

Page 27: React.js and Redux overview

Dev Tools

Page 28: React.js and Redux overview

React + Redux app architecture

Page 29: React.js and Redux overview

React + Redux middleware

react-router

react-redux

react-router-redux

redux-thunk

Page 30: React.js and Redux overview

@netxm

www.priceline.com/careers

slide URL

bit.ly/redux-intro