This document provides an overview of React and Redux. It introduces React as a component-based library for building user interfaces using JavaScript and JSX. Key aspects of React include its lifecycle methods, use of a virtual DOM for fast updates, and functional stateless components. Redux is introduced as a state management library that uses a single immutable store with actions and reducers. It follows the Flux architecture pattern without a dispatcher. Hands-on demos are provided for key React and Redux concepts. Resources for further learning are also listed.
Introduction to React and Redux focuses on the impact of these technologies on web development. Highlights include functional programming, component beauty, and enhancements in JavaScript through React and Redux.
Discusses the evolution from Apache Wicket to React as a component-based framework with a focus on JavaScript and JSX, emphasizing its role in the MVC architecture.
Introduction to React's lifecycle methods during mounting and updating phases, providing insight into component dynamics and rendering processes.
Explains the Virtual DOM enabling fast updates in React, along with coding conventions including ES6 and usage of npm/yarn for optimal performance.
Explores the structure of React components including stateless functional components, container components, state management with setState, and propTypes usage.
Includes hands-on demos for practical learning of React, along with recommended resources like React documentation and books for further study.
Introduces Redux as a state management tool, detailing its predictable state container concepts and contrasts it with traditional Flux architecture.
Focuses on the implementation of action creators and reducers in Redux, showcasing state management through actions like savePaste.
Demonstrates how to connect Redux with React components by mapping state and dispatch actions, emphasizing the role of props in Redux applications.
Summarizes key points regarding React's purity, Redux's single store, and immutable data structures, concluding with resources for continued learning.
ABOUT ME
16 Yearsin Business
8 Years @ Java2Days
Published Author
So ware Consultants
International Speakers
Invented the Internet
Training
To our success!
KEY POINTS
Functional programmingis awesome (avoid change in state,
immutable)
Components are beautiful
JavaScript sucks, but React and Redux with ES6 make it
bearable
VIRTUAL DOM
REACT'S SOLUTIONTO FAST DOM UPDATES
Pure JavaScript
In-memory representation of DOM
render() runs whenever something changes
Diffs with the old one
Batch executes all queued updates
14.
CONVENTIONS FOR THISTALK
Code will be using ES6, transpiled using Babel
Uses npm scripts rather than Grunt or Gulp
yarn instead of npm because it's superior
15.
by
REACT STARTER KIT
ReactSlingshot Cory House
Includes all necessary tooling to be successful with React
and Redux
MAPPING STATE ANDDISPATCH
import { connect } from 'react-redux';
const mapDispatchToProps = (dispatch) => {
// maps dispatch actions for executing action creators to props
};
function mapStateToProps(state) {
// contains state from store and allows mapping to props
}
export default connect(
mapStateToProps,
mapDispatchToProps)
(MyLittleComponent);