Lessons

Explore all newline lessons

Tags
Author
Pricing
Sort By
Video
Most Recent
Most Popular
Highest Rated
Reset
https://s3.amazonaws.com/assets.fullstack.io/n/20211004103148075_CoverImage_ModernizeAnEnterpriseReactApp.png

lesson

How Does React's useEffect Hook Work?The newline Guide to Modernizing an Enterprise React App

useEffect is a game-changing hook: originally compared to lifecycle methods in React components, it's close but not truly a direct comparison.

https://s3.amazonaws.com/assets.fullstack.io/n/20211004103148075_CoverImage_ModernizeAnEnterpriseReactApp.png

lesson

React's useState Hook - Track Functional Component StatesThe newline Guide to Modernizing an Enterprise React App

The useState Hook is the most similar to traditional state in React class-based components, and we'll look at examples of how it works to keep track of state in functional components.

https://image.mux.com/wwucYoH7fxtm9nR9ex6LMMjqe01Cnsk3j5DReHDbPqhE/thumbnail.png?time=0

lesson

React Hooks - Understanding The Basic Rules and BenefitsThe newline Guide to Modernizing an Enterprise React App

Learn about the motivation behind React Hooks, the benefits it can bring, and the rules that apply to all Hooks in a React application.

https://image.mux.com/pAebSPY017PMwzoC9RE6MhLO501VRygNcYUZFdZtkO3SE/thumbnail.png?undefined

lesson

Coding a Comments Section that Requires Manual Content ApprovalThe newline Guide to Full Stack Comments with Hasura and React

Right now, all the comments are public instantly. However, we may want to review the comments before showing them to other users. This is what we'll cover in this lesson.

https://image.mux.com/VbzJznMM4EyYUEUYILo7iCCaYpVgS8n5RzU1TYKsGZU/thumbnail.png?undefined

lesson

An Overview of Optimistic Updates for React HooksThe newline Guide to Full Stack Comments with Hasura and React

We'll learn about optimistic updates and add them to our hook's implementation to improve the user experience.

https://embed-ssl.wistia.com/deliveries/fc18a709f6dc2f24cc2cda62b951c30fbace5d7d.jpg

lesson

How to Use GraphQL to Add Comment Features to a Frontend AppThe newline Guide to Full Stack Comments with Hasura and React

This lesson will show how to extend the hook to handle adding new comment logic. It will cover adding a new GraphQL mutation and using it from the frontend application.

https://embed-ssl.wistia.com/deliveries/43cda77fec3b4f518bc98d4cd114bf6605a7c69d.jpg

lesson

A Brief Tutorial on Building the UI for a Blog Comments SectionThe newline Guide to Full Stack Comments with Hasura and React

In this lesson, we'll add a UI for the comments section and a new comment form. We'll also display the comments that we get from the React hook.

https://embed-ssl.wistia.com/deliveries/0300ead2de74af228f596bec08ad2d46360381a0.jpg

lesson

Fetching Blog Comments from a Database with a Custom React HookThe newline Guide to Full Stack Comments with Hasura and React

In this lesson, we'll create a React hook that will fetch the comments from the database. We'll cover how to create a custom hook as well as how to integrate with Hasura.

https://image.mux.com/Wz01rxyTQ00X6drskxB01kVI727XmJ01G83pLLQJZpNqwqc/thumbnail.png?undefined

lesson

Setting Up Next.js Blog Starter and Understanding Its StructureThe newline Guide to Full Stack Comments with Hasura and React

We'll get to know a sample blog application that we'll be adding a comments section to. We'll also go over the setup and explain the directory structure.