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
MongoDB for Node.js DevelopersMongoDB University Introduction to Office 365 Development and APIs
Microsoft via edX Server-side Development with NodeJS
The Hong Kong University of Science and Technology via Coursera Front-End Web UI Frameworks and Tools
The Hong Kong University of Science and Technology via Coursera Introduction to MongoDB using the MEAN Stack
MongoDB via edX