Learning
A selected list of tutorials, articles, and resources on Javascript, React, Redux, and related topics. Brought to you by Mark Erikson (aka @acemarke). For additional articles on these and other topics, see React/Redux Links.
For a 10,000 foot view of the JS ecosystem, check out the State of JS survey. For a list of books available for purchase, check out our recommended reading list.
Recommended Learning Path
You should learn these technologies in the following order:
- "How Web Apps Work": a series of posts that lays out the big picture of the core technologies, terms, and concepts used in client/server web apps
- JavaScript: If you don't know JavaScript, nothing else will make sense
- React: You can use React by itself, or with Redux and/or TypeScript. Learning it separately will minimize the number of new concepts and syntax you have to learn at once.
- Redux: Redux can be used separately, but it's most commonly used with React.
- TypeScript: Because it adds static types on top of JS, you need to understand JS first. Also, it's easiest to understand React and Redux first, then learn how to use them with static types.
The resources in this page are listed in that order.
You are not required to read every single link and article listed in this page. However, you should try to read through as many of the articles linked in the "Recommended Primary Resources" sections as possible, especially for topics you are not already familiar with. Many of the recommended tutorials do cover the same topics, so feel free to skip past concepts you've already learned.
Links in the "Additional Resources" sections are available as references and reading as needed.
How Web Apps Work
Mark's post series that describes the key terms, concepts, technologies, syntax, and data flow used in web apps.
Recommended Primary Resources (should read)
- How Web Apps Work: HTTP and Servers
- How Web Apps Work: Client Development and Deployment
- How Web Apps Work: Browsers, HTML, and CSS
- How Web Apps Work: JavaScript and the DOM
- How Web Apps Work: AJAX, APIs, and Data Transfer
Javascript
Recommended Primary Resources (should read)
General JS
- Slides: Mark's "JavaScript for Java Developers" slides
- Read: MDN: A re-introduction to JavaScript
- Read: The Modern JavaScript Tutorial
- Read: Javascript Cheatsheet
- Exercises: CodeCademy - Introduction to JavaScript Tutorial
Specific Topics
- Array methods:
- Equality and Comparisons
- Closures
this
keyword and scopes- The JS event loop
- CSS and layout
- Node / NPM
- Build Tools
- Debugging
Additional Resources (read as needed)
General JS
- Core References:
- Syntax Overviews:
- Additional Books / References:
- The Complete JavaScript Handbook
- Eloquent JavaScript
- Exploring JS books (cover what's new in each yearly revision of the language)
- Links: ES6+ Features and Syntax (links to additional articles on new features in ES6+)
- You Don't Know JS (advanced concepts and understanding of JS behavior)
Specific Topics
- Array/object methods / immutability
- JS Event Loop
- Regular Expressions
- CSS
- Node / NPM
- Lodash
- Build Tools
React
Recommended Primary Resources (should read)
General React
Start by reading the official docs. The React team has put out a major rewrite of the React docs site, now focusing on teaching functional components and hooks first. The updated and improved documentation is an excellent choice to start learning React.
Along with the official react docs, these other listed tutorials are also excellent and may explain things in a different way.
-
Read: Official React docs
-
Quick Start (docs overview and related resources)
-
Main Concepts (read the whole series, but especially these two):
-
Tutorial: Tic Tac Toe (learn React by making a tic-tac-toe game)
-
React Hooks guide (lays out the motivation, teaches hooks, API reference, in-depth FAQ)
-
-
Watch: React Tutorial for Beginners
-
Read: Intro to React, Redux, and TypeScript for 2020 (Mark's presentation slides)
-
Exercises: Learn React - Interactive Tutorials
Project Setup
- Read: Simple React Development in 2019 (a guide to setting up an app, development environment, and deployment)
- Use: CodeSandbox.io (an online IDE that uses VS Code's editor, and can let you develop and run your apps completely in the browser)
- Use: Create-React-App (the official CLI tool for creating a React app with one command. Sets up a project with good default build settings out of the box.)
Animating in React
- GreenSock Animation Platform
Specific Topics
- Understanding how React works conceptually / internally
- React as a UI Runtime (deep dive - not required reading, but will definitely help you understand React better)
- Mark Erikson: A (Mostly) Complete Guide to React Rendering Behavior
- Build your own React
- State and props
- Component lifecycles
- AJAX requests
- Immutability
- Functional Programming basics
- Forms and "controlled inputs"
- React's new "hooks" API
- React docs - Hooks (lays out the motivation, teaches hooks, API reference, in-depth FAQ)
- A Complete Guide to useEffect (very long article, but a must-read. Teaches how hooks use closures, defining when effects run, and much more.)
- What are React Hooks?
- React Hooks: Not Magic, Just Arrays (looks under the hood to explain how hooks are implemented)
- Getting Closure on React Hooks (diving into the language concepts used by hooks)
Additional Resources (read as needed)
General React
- Resource Collections
- Mark Erikson's React-Redux links collection (many categories of links to articles)
- Mark's suggested resources for learning React
- Dave Ceddia's blog (everything he's written)
- Robin Wieruch's blog (also everything he's written)
- Additional Books / References
Redux
Recommended Primary Resources (should read)
General Redux
Start with reading the official docs first, and also watch Mark Erikson's "Redux Fundamentals Workshop" videos.
The other tutorials are also excellent and may explain things in a different way.
- Read: Redux core docs
- "Redux Essentials" tutorial: explains "how to use Redux, the right way", using the latest recommended techniques and practices like Redux Toolkit and the React-Redux API, while building a real-world-ish example app.
- "Redux Fundamentals" tutorial: teaches "how Redux works, from the ground up". including core Redux data flow and why standard Redux patterns exist.
- "Typescript quick start": explains how to configure Redux Toolkit with type safety from action creators through to selectors.
- Use: Redux Toolkit (an official Redux package to simplify common tasks, including store setup and writing reducers)
- Read: React-Redux docs
- React-Redux hooks API reference
- These APIs are now considered outdated, but are widely used in existing Redux codebases
- Watch: Dan Abramov's tutorial videos on Egghead
- Read: A Complete React-Redux Tutorial
- Read: React Redux Tutorial for Beginners: The Definitive Guide
- Read: Leveling Up with React: Redux
Mark Erikson's Redux Resources
- Read: "Idiomatic Redux" concepts and opinion series. A series of blog posts that describes standard Redux development best practices, why they exist, and how Redux is meant to be used. (These are not required reading to get started, but highly recommended once you understand the basics.)
- Legacy resources (do not cover "Modern Redux", but still informative)
- Read: Redux Fundamentals Workshop slices: a 2-day internal workshop that covers Redux from the ground up. Includes complete recordings of each section, slides, and an exercises repo. (Does not cover "Modern Redux", but
- Read: "Practical Redux" blog tutorial series. Covers multiple React and Redux concepts through building a larger example application
Specific Topics
- Tradeoffs of using Redux:
- Reducer functions
- Selector functions
- Side effects
- Stack Overflow: How do we dispatch an action with a timeout?
- Stack Overflow: Why do we need middleware for async flow?
- What the heck is a "thunk"?
- What is the right way to do asynchronous operations in Redux? (side-by-side comparison of multiple side effects approaches)
- Redux Power Tools: Redux-Saga
- Normalizing data
Additional Resources (read as needed)
- Resource Collections
- Redux FAQ (answers to many common questions about Redux)
- Mark Erikson's React-Redux links collection (many categories of links to articles)
- Mark's suggested resources for learning Redux
- Redux Ecosystem Links (a curated list of Redux-related addons and utilities)
- Books and Courses
- Pure Redux course by Dave Ceddia
- Redux course by Tyler McGinnis
- Learn Redux course by Wes Bos (free)
- Redux in Action
- The Complete Redux Book (free)
- Taming the State in React
Specific Topics
- How does Redux work?
TypeScript
Recommended Primary Resources (should read)
- Read: official TypeScript docs
- Typescript Playground - an interactive playground for testing typescript behavior and reproducing issues - includes some built-in examples
- Read: Get Started with TypeScript in 2019
- Read: The Definitive TypeScript Guide
- Read: The TypeScript Guide
Specific Topics
interface
vstype
- "Typescript quick start": explains how to configure Redux Toolkit with type safety from action creators through to selectors.
Additional Resources (read as needed)
- Resource Collections
- React+TypeScript Cheatsheets (a definitive set of information on how to use TypeScript with React)
- React + Redux in TypeScript - Static Typing Guide (a comprehensive set of info on using React, Redux, and TS together, with a focus on getting complete / "correct" type coverage of an app)
- Techniques