Code Refactoring in React, Node.js, Express, MongoDB - MERN Stack Project
Offered By: Dave Gray via YouTube
Course Description
Overview
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
Related Courses
Introduction to ReactJSMicrosoft via edX Front-End Web Development with React
The Hong Kong University of Science and Technology via Coursera Multiplatform Mobile App Development with React Native
The Hong Kong University of Science and Technology via Coursera Client-based Web Applications development: ReactJS & Angular
Universidad Politécnica de Madrid via MirÃadax React
Udacity