What is a React component?
Simple meaning
A component is a function that returns UI from props and state.
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.
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.
Authentication proves who the user is, usually with a password, OTP, or OAuth login.
Open the full page for Why, Steps, Example and Key takeaway.
A JSON Web Token is a signed string with a header, payload, and signature.
Open the full page for Why, Steps, Example and Key takeaway.
Hashing turns a password into a one-way digest so a database leak does not reveal real passwords.
Open the full page for Why, Steps, Example and Key takeaway.
The React form posts credentials to Express.
Open the full page for Why, Steps, Example and Key takeaway.
HTTP-only cookies are harder for stolen scripts to read because JavaScript cannot access them.
Open the full page for Why, Steps, Example and Key takeaway.
You build React into static files, run the Node API as a long-lived process, and put both on a public URL.
Open the full page for Why, Steps, Example and Key takeaway.
Development builds include source maps, hot reload, and extra warnings.
Open the full page for Why, Steps, Example and Key takeaway.
Staging is a production-like environment used to test a release before customers see it.
Open the full page for Why, Steps, Example and Key takeaway.
PM2 keeps a Node process running, restarts it on crash, and can run multiple instances.
Open the full page for Why, Steps, Example and Key takeaway.
Unit tests check one function or component in isolation.
Open the full page for Why, Steps, Example and Key takeaway.
Jest is a JavaScript test runner for React components and Node unit tests.
Open the full page for Why, Steps, Example and Key takeaway.
An assertion checks that actual output matches what you expect, such as a 200 status or a rendered heading.
Open the full page for Why, Steps, Example and Key takeaway.
API tests lock in status codes, validation, and auth rules so refactors do not silently break the React client.
Open the full page for Why, Steps, Example and Key takeaway.
CORS is a browser rule that blocks a page on one origin from reading another origin unless the server allows it.
Open the full page for Why, Steps, Example and Key takeaway.
Cross-site scripting injects malicious JavaScript into a page other users load.
Open the full page for Why, Steps, Example and Key takeaway.
API keys, database URIs, and JWT secrets in Git history can be cloned or leaked forever.
Open the full page for Why, Steps, Example and Key takeaway.