TutorialsCourses
Yup Date Validation with Custom Transform
Jason Brown

In this lesson we'll examine how yup validations are setup. Also we'll show some of the builtin helpers like email, required, and min/max for dates. Then using date-fns we'll setup a custom transform so our validation system can handle different formatted dates.

JavaScript
Unit Test Token Verification for Auth0 using Jest and mock-jwks
Jason Brown

Testing authentication can be difficult, especially with many 3rd party providers like Auth0. We'll show how to use Jest and mock-jwks to test out your authentication to create fast unit tests with out hacks.

Jest
Create a Multi-Step Animated Modal Depending on User Actions in React Native
Jason Brown

Animations can be used to effectively communicate a users action. However many times the reverse animation is used for both a close, or success. We can do better, and we'll walk through how to use Animated to create 2 different animations with a single animated value.

React Native
React Native
Create GraphQL Enums with Hasura Enum Tables
Jason Brown

We'll tackle setting up user types by creating a users_types table with a value text primary key. We'll add the users type as a foreign key to our new table. Finally we'll insert values as a SQL query and track it as a migration.

Hasura
Sticky Header with Highlighting Sections on Scroll
Jason Brown

We'll use position: sticky to lock our sticky header to the content container that it's in when the user scrolls. Using a useEffect hook we can monitor the scroll position and determine if the user is looking at a section of our content. If they are we can update a useState hook to highlight it in our nav bar. Finally we'll add a scroll to section feature as well.

React
Create an Animated Circular Progress Indicator to Track Article Read Percentage in React
Jason Brown

We'll build a circular progress button to show how far a user has read an article. The techniques will rely on stroke-dasharray and stroke-dashoffset. Using the useLayoutEffect hook and useRef hook we will measure our article height dynamically and calculate progress based upon the scroll position. We'll show how to dynamically calculate all necessary values to render our progress circle exactly where we want it.

React
Create a Query Param Login Modal Route with React Router
Jason Brown

Routes are some times better served as a modal. If you have a modal (like a login modal) that needs to be routeable and appear on all pages you may need to use query params. Will explore how to render a route all the time and use query params to control when it's content renders

React Router
Create a Query Param Login Modal Route with React Router
Jason Brown

Routes are some times better served as a modal. If you have a modal (like a login modal) that needs to be routeable and appear on all pages you may need to use query params. Will explore how to render a route all the time and use query params to control when it's content renders

React Router
Create a Modal Route with React Router
Jason Brown

Often times there is a route that is better served as a modal. You want to be able to link to it and still render the page behind it. With React Router this can be accomplished. We'll dive into rendering a route with a route that renders as a modal.

React Router
« Previous
1 of 15
Home