Redux: React Todo List Example (Adding a Todo)
lessonDuration 7m 25s
Learn how to create a React todo list application using the reducers we wrote before.
Browse
Find courses, lessons, articles, talks, and podcasts.
1,542 results for "react"
Showing 241–264 · Page 11 of 65
lessonDuration 7m 25s
Learn how to create a React todo list application using the reducers we wrote before.
lessonDuration 2m 18s
Before you use the React Redux bindings, learn how to create a complete simple application with just React and Redux.
lessonDuration 2m 26sFree
Getting started with a new frontend project can be daunting. Sometimes, configuring Babel, [webpack](/q/webpack), eslint, Jest and all the other tools common to most frontend applications, just holds you back from building something. The [React](/q/react) team has built and maintains create-react-app so you can start a project quickly without having to worry about setting up all the tooling. You get everything pre-configured with a lot of really sensible defaults. In this lesson, we'll bootstrap a project with npx and create-react-app so we can get right into building apps with React.
lessonDuration 1m 50s
Storybook is a UI component development environment for React, Vue, and Angular. With that, you can develop UI components without running your app. Here I show how best to configure a React Storybook to use [Typescript](/q/typescript) (with TSX). This lets you write your reusable components with maximal type safety. Please see the provided code for the full source.
talk
A guide to the fundamentals of React explained through five visual metaphors. From component trees to state, Maggie explains the analogies and metaphorical comparisons that helped her "get" React for the first time. React aside, this is primarily about how and why we should use visuals metaphors. Wrestling with invisible, abstract, complex concepts is part of what programming is all about. But we're often bad at succinctly and clearly communicating the overarching idea of them to other people. Visual metaphors are a powerful solution to this problem - they're perfectly designed to elegantly explain the essence of technical tools in a way pages of jargon-filled docs can't. You can find plenty more visual explanations of programming topics around egghead, and on Maggie's [digital garden](https://maggieappleton.com/garden). If you're interested in learning more about how to illustrate and create your own visual metaphors, check out Maggie's collection of [recommended courses and books](https://maggieappleton.com/resources/)
lessonDuration 1m 37s
Due to the way that React Context Providers work, our current implementation re-renders all our compound component consumers with every render of the `<Toggle />` which could lead to unnecessary re-renders. Let's fix that by ensuring that the `value` prop we pass to the `<ToggleContext.Provider />` is only changed when the state changes.
lessonDuration 2m 14s
Our current compound component implementation is great, but it's limited in that users cannot render the structure they need. Let's allow the user to have more flexibility by using React context to share the implicit state to our child `<Toggle/>` components. We will walk through using React's official context API with `React.createContext` and use the given `Provider` and `Consumer` components to share state implicitly between our compound components giving our users the flexibility they need out of our component.
lessonDuration 2m 5s
Here's a little intro to the course material. I hope you enjoy the course! The goal of this course is to give you the concepts and ideas you need to make components as simple and flexible as possible so you and your team will have an easier time building an amazing UI. You will learn several patterns in this course (Compound components, render props, Higher Order Components, control props, state reducers, and the Provider pattern etc.) that are used broadly in the JavaScript (and specifically React) ecosystem. Some patterns are two ways of doing the same thing, but you can combine them to create as flexible APIs as your use cases require.
lessonDuration 2m 10sFree
Storing token in the state is not the best idea, so you will migrate from storing the token in local state to a global state. For that you will use React context. With React Context, your token can be easily access from anywhere in the app. You will need that for API calls to Symbl.ai later on.
lessonDuration 1m 3sFree
We sometimes just want to return a couple of elements next to one another from a React functional component, without adding a wrapper component which only purpose would be to wrap elements that we want to render. In this one minute lesson we are going to learn how to solve this problem by returning an array of components and as such - avoid adding unnecessary `div` wrappers.
lessonDuration 1m 14sFree
Creating cross-platform web-based applications with Ionic 4 and React is easy thanks to the Stencil compiler and `create-react-app`. In this video, we look at how to use create-react-app and @ionic/react to make an Ionic 4 + React application
lessonDuration 3mFree
In this lesson we will learn how to animate SVGs(Scalable Vector Graphics) imported as React components. As most SVGs are built with different shapes and paths we can use this and apply specific animations to them. The whole idea is not 100% dependent on styled components as the same result can be achieved without using CSS-in-JS.
lessonDuration 1m 57sFree
One of the common pitfalls when learning React is related to event handlers losing the reference to `this` pointing to the component when called. Common approach to solving this issue is to use a `constructor` and `.bind()` function to bind all class methods to `this` object, referring to the component itself. It sometimes leads to a `constructor` which sole purpose is to bind a bunch of methods. In this lesson we are going to learn how to use a public class field syntax (currently available in Babel stage-2 and enabled by default in create-react-app) to avoid having to create unnecessary constructors in order to bind a React component method to proper `this`
lessonDuration 2m 37sFree
HTML is the standard way to define UI for browsers and it's a great way of representing the hierarchical structure of a web page. Since React is a JavaScript framework, all of the UI we build needs to be defined in JavaScript code, but that doesn't lend itself to being able to quickly write or read the code that defines our UI in terms of the HTML that will be rendered in the browser. Instead of writing raw, JavaScript functions, we'll write in JSX (JavaScript XML) to define our UI structure in a familiar, HTML-like, syntax and let the tools (Babel, specifically) turn that into standard JavaScript for the browser. In this lesson, we'll use JSX to render a static version of the beginning of our application.
lessonDuration 2m 10sFree
In this lesson, we'll get up and running with React Native while installing the extension for MacOS. For current instructions, head over to the React Native for MacOS documentation site, which will point you in the direction of the latest version: https://microsoft.github.io/react-native-windows/docs/rnm-getting-started. To run your new Mac application, run `npx react-native run-macos`. The first time you run this, it will take quite a while because project dependencies are being installed, but subsequent runs will go much quicker.
lessonDuration 1m 30sFree
Here we refactor a React TypeScript class component to a function component with a useState hook and discuss how props and state types can be modeled accordingly.
lessonDuration 1m 18sFree
Most React developers knows the pain of refactoring a functional component only because we would like to add a state to it. In this lesson we are going to learn a new way of handling that - React 16.7 alpha introduces a concept of hooks, which allow us to well... hook into existing React features (such as state) from inside of a functional component. By using a `useState` hook we introduce state to a `Counter` component without introducing a class.
lessonDuration 2m 47s
Now that we have a serverless function to generate a Twilio token, we need to use it. In this lesson, we'll use `axios` within our custom React hook to request and store a token from the serverless Twilio function. The generated token will be used to protect routes that require authentication within Gatsby.
lessonDuration 2m 49sFree
When using functional components in React we may run into situations where we are performing expensive calculations multiple times, even though the values passed in to the functional component hasn't changed. This is where `useMemo` hook comes in. In this lesson we are going to learn how to use `useMemo` hook to optimize an expensive (in this example - highly expensive operation of adding two numbers together, for simplicity) operation so that its result is recalculated only when it's necessary - that is, when the input arguments have changed. Otherwise, we are going to use an optimized, memoized result.
lessonDuration 3m 17sFree
React hooks provide a new way to access the data and functions stored in context with the `useContext` hook. In this lesson, we'll create a login form and store the user data in a context called `UserContext` that we create the typical way - with `React.createContext()`. We'll also provide that context to our app the typical way - by wrapping our app with `<UserContext.Provider>`. But then, in our child components, we'll use `useContext` to pull out the value stored in the `UserContext`. Then, we can display that value, and use the function that we set in the context to change the user value.
lessonDuration 1m 59sFree
In this lesson you will learn how to create a basic text editor with Slate and React. I will guide you all the way from installing all necessary modules to using them to create a working React App with a text editor.
lessonDuration 3m 5sFree
Individually defining props doesn't scale especially if you are wrapping native DOM elements, for example for the purpose of building up a Design System. Fortunately, there are easy strategies to lend full TypeScript support to your custom React elements, without excessive typing.
lessonDuration 1m 53sFree
codesandbox.io provides one of the fastest ways to start a new React project. In this lesson, we will take a first look at codesandbox, its interface, and the default React project it creates.
lessonDuration 3m 26sFree
In this video we learn how to deploy & host a React application on AWS using the Amplify Console. We also see how to do continuous deployment by kicking off new builds when changes are made to the master branch of our repository.