What does CRUD mean for a MongoDB-backed API?
Simple meaning
CRUD is Create, Read, Update, and Delete.
Open the full page for Why, Steps, Example and Key takeaway.
Panel-ready MERN Full Stack questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.
CRUD is Create, Read, Update, and Delete.
Open the full page for Why, Steps, Example and Key takeaway.
A schema defines fields, types, required flags, defaults, and indexes for a collection.
Open the full page for Why, Steps, Example and Key takeaway.
React is a library for building user interfaces from components.
Open the full page for Why, Steps, Example and Key takeaway.
JSX is a syntax that looks like HTML inside JavaScript.
Open the full page for Why, Steps, Example and Key takeaway.
Props are inputs passed from a parent and should be treated as read-only.
Open the full page for Why, Steps, Example and Key takeaway.
useState returns the current value and a setter that queues a re-render.
Open the full page for Why, Steps, Example and Key takeaway.
useEffect runs side effects after render, such as fetching data or attaching listeners.
Open the full page for Why, Steps, Example and Key takeaway.
A component is a function that returns UI from props and state.
Open the full page for Why, Steps, Example and Key takeaway.
The virtual DOM is React's in-memory tree of UI.
Open the full page for Why, Steps, Example and Key takeaway.
Class components use this.state and lifecycle methods.
Open the full page for Why, Steps, Example and Key takeaway.
key helps React identify which item changed, was added, or was removed.
Open the full page for Why, Steps, Example and Key takeaway.
Callbacks pass errors as the first argument and nest easily into callback hell.
Open the full page for Why, Steps, Example and Key takeaway.
Streams process data in chunks instead of loading an entire file or response into memory.
Open the full page for Why, Steps, Example and Key takeaway.
Wrap awaited calls in try/catch or use a wrapper that forwards rejections to next.
Open the full page for Why, Steps, Example and Key takeaway.
process.nextTick queues a callback to run after the current operation, before the event loop continues.
Open the full page for Why, Steps, Example and Key takeaway.
cluster forks worker processes so a multi-core machine can handle more concurrent connections.
Open the full page for Why, Steps, Example and Key takeaway.
nodemon watches files and restarts on every save, which is what you want locally.
Open the full page for Why, Steps, Example and Key takeaway.
Create an express.Router per resource, such as users or orders, and mount them on paths like /api/users.
Open the full page for Why, Steps, Example and Key takeaway.
Register a four-argument middleware last: err, req, res, next.
Open the full page for Why, Steps, Example and Key takeaway.
helmet sets security-related HTTP headers such as Content-Security-Policy defaults, X-Content-Type-Options, and frame guards.
Open the full page for Why, Steps, Example and Key takeaway.