What do HTTP status codes 200, 401, and 404 mean for the UI?
Simple meaning
200 means success so I render the data.
Open the full page for Why, Steps, Example and Key takeaway.
Panel-ready Frontend Master questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.
200 means success so I render the data.
Open the full page for Why, Steps, Example and Key takeaway.
Divs have no meaning, so screen readers and outline tools cannot find nav, headings, or lists.
Open the full page for Why, Steps, Example and Key takeaway.
Em is relative to the parent font-size, so it compounds in nested components.
Open the full page for Why, Steps, Example and Key takeaway.
It turns a JS value into a JSON string for APIs or localStorage.
Open the full page for Why, Steps, Example and Key takeaway.
It stops the browser's default action, like following a link or submitting a form.
Open the full page for Why, Steps, Example and Key takeaway.
Hooks let us reuse stateful logic without HOCs and mixins.
Open the full page for Why, Steps, Example and Key takeaway.
A class can be reused on many elements
Open the full page for Why, Steps, Example and Key takeaway.
Map returns a new array of transformed items and is the React list pattern.
Open the full page for Why, Steps, Example and Key takeaway.
Both download the script without blocking HTML parse.
Open the full page for Why, Steps, Example and Key takeaway.
UseEffect runs after paint for side effects: fetch, subscriptions, and syncing to document title.
Open the full page for Why, Steps, Example and Key takeaway.
The modern answer is flex on the parent with justify-content and align-items set to center, or grid with place-items center.
Open the full page for Why, Steps, Example and Key takeaway.
Flex-grow is how leftover space is shared
Open the full page for Why, Steps, Example and Key takeaway.
I use a grid with two columns on min-width 768 and one column in the base styles.
Open the full page for Why, Steps, Example and Key takeaway.
Z-index is compared only inside the same stacking context.
Open the full page for Why, Steps, Example and Key takeaway.
Fixed is relative to the viewport and stays put even when you scroll the page.
Open the full page for Why, Steps, Example and Key takeaway.
I start with a button that has aria-expanded and aria-controls pointing at the list.
Open the full page for Why, Steps, Example and Key takeaway.
Inside a form, the default type is submit, so a random button can post the form by accident.
Open the full page for Why, Steps, Example and Key takeaway.
Synchronous code runs on the call stack until it is empty.
Open the full page for Why, Steps, Example and Key takeaway.
Microtasks include Promise callbacks and queueMicrotask and they flush completely before the next macrotask.
Open the full page for Why, Steps, Example and Key takeaway.
Objects have an internal prototype link used when a property is missing.
Open the full page for Why, Steps, Example and Key takeaway.