Screencasts

Test Successful Async Form Submissions with React Router
7:06

Test Successful Async Form Submissions with React Router

React

In this lesson we'll explore how to test that an async form submission successfully happened using Jest. We'll also take advantage of react-testing-library to render our react components to a fake dom. We'll use MemoryRouter to mock what a browser would normally do in the event of a transition, and create a fake component route to confirm that the submission successfully redirected us to the url we wanted.

Custom Handling the Android Back Button with React Navigation
7:52

Custom Handling the Android Back Button with React Navigation

React Native

In this lesson we'll explore setting up a stack navigator in React Navigation. We'll create a custom component that uses withNavigation to allow us to listen to navigation transitions. Using the BackHandler from React Native we can ask the screen if custom needs are required when the hardware back button is pressed. Finally we'll prompt the user if they want to navigate.

Conditional JavaScript Callbacks with Reanimated in React Native
9:53

Conditional JavaScript Callbacks with Reanimated in React Native

React Native

In this lesson we'll explore how to setup a draggable circle. Then we'll dive into using the call method to create JavaScript callbacks whenever certain conditions are met inside of Reanimated.

Create a Draggable Opacity Changing Circle with Reanimated in React Native
9:16

Create a Draggable Opacity Changing Circle with Reanimated in React Native

React Native

In this lesson we'll use a PanGestureHandler to track a single gesture state. We'll use additional declarative animation functions like cond, eq, add, set, and event. We'll then use interpolate to create opacity and border effects whenever the circle is dragged to new locations.

Create a Tap-and-Hold Toggle Opacity Animated Box with Reanimated in React Native
10:30

Create a Tap-and-Hold Toggle Opacity Animated Box with Reanimated in React Native

React Native

In this lesson we'll explore using Reanimated and React Native Gesture Handler to create a touchable opacity button using TapGestureHandler. With declarative animations in Reanimated we'll use tools like timing, Clock, set cond, and eq to create a purely native opacity animation.

Introduction to Reanimated in React Native
4:52

Introduction to Reanimated in React Native

React Native

In this lesson we'll explore using Reanimated and React Native Gesture Handler to create a button using TapGestureHandler. With declarative animations in Reanimated we'll use cond, and eq to create a purely native opacity change animation when the button is pressed.

Create an Interactive Line Graph with a Hover Dual Line Highlight using VX and D3
9:01

Create an Interactive Line Graph with a Hover Dual Line Highlight using VX and D3

D3

In this lesson we'll take a look at how to render a basic line graph using D3, and VX. We'll move on to analyzing how to add some interactivity that will render a line where ever the user hovers using bisect from D3. Then we'll show how to render another line path using the scales and manipulating our data. Finally we'll add another line split so we're rendering 2 line paths.

Use matchPath to Match Nested Route Paths in Parent Routes with React-Router
5:53

Use matchPath to Match Nested Route Paths in Parent Routes with React-Router

React Router

In this lesson we'll use the matchPath function exported by react-router to find active nested routes inside of a parent component. This technique can be used for comparing routes outside of a React component, or even inside of life cycle methods to do data loading.

Create a ProtectedRoute for Logged In Users with Route, Redirect, and a Render Prop in React Router
6:34

Create a ProtectedRoute for Logged In Users with Route, Redirect, and a Render Prop in React Router

React Router

In this lesson we'll create a protected route just for logged in users. We'll combine a Route with a render prop and use a loggedIn prop to determine if the route should be allowed to be accessed. Finally we'll use nav state to preserve the location the user visited and redirect them back to the protected route once they login.

Create a Modal Route with Link and Nav State in React Router
5:00

Create a Modal Route with Link and Nav State in React Router

React Router

In this lesson we'll show how the Link component to prop can receive an object. This allows us to pass state to the route. With the nav state we destructure off of location we can determine if a user wants to open a modal or on a cold visit show an image embedded in the page.