Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Code Refactoring in React, Node.js, Express, MongoDB - MERN Stack Project

Dave Gray via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn advanced code refactoring techniques for a MERN stack project in this comprehensive tutorial video. Explore optimization strategies for both backend and frontend code, including unique data field handling, case-sensitive data checks, and replacing express-async-handler. Dive into frontend improvements with React components, Redux Toolkit Query optimizations, and the implementation of loading spinners. Master the art of code refinement to enhance your full-stack development skills in React, Node.js, Express, MongoDB, and Redux with RTK Query.

Syllabus

Intro
Welcome
Starter Code - Backend
Not a traditional code review
Unique data field vs checking for duplicates
Checking for case-sensitive data
Using the default user roles value
On not using findOneAndUpdate, etc.
Replacing express-async-handler
Additional error flag in handler
Starter Code - Frontend
validateStatus query property
prefetch vs initiate
Adding react-spinner dependency
Note component refactor
User component refactor
EditUser component refactor
NewNote component refactor
EditNote component refactor
Checking changes and network requests
Checking optimizations in Redux Devtools
Replace loading messages with spinners
useTitle hook for page titles

Taught by

Dave Gray

Reviews

Start your review of Code Refactoring in React, Node.js, Express, MongoDB - MERN Stack Project

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.