completefrontend
BLOGS

Frontend development blogs

Articles and news on frontend development: what's new in browsers, JavaScript, React, and Next.js, with clear explanations and working examples.

A click followed by three bars, input delay, processing, and presentation delay, ending at the next paint

Web performance

What is Interaction to Next Paint (INP)?

Interaction to Next Paint is the Core Web Vital for responsiveness. Here's what it measures, what a good score is, and how to find and fix the code behind a slow click.

6 min read

How browsers, JavaScript, and frontend tools work, explained with real code you can run.

Title card for VS Code extensions for frontend developers, with five extension names in a row: ESLint, Prettier, Live Preview, Error Lens, and GitLens

Tech

VS Code extensions for frontend developers

A short list covers it: ESLint, Prettier, a live preview, and a few helpers like Error Lens and GitLens. Here's what each extension does, who publishes it…

5 min read

Title card for how to deploy a website for free, with a browser address bar showing https://your-name.github.io/my-site/ marked live

Tech

How to deploy a website for free

Deploying puts your site's files on a server so anyone can open them. Here's how to do it for free with GitHub Pages, what changes when your project has a…

5 min read

Title card for Git and GitHub for beginners, with four commands in a row: git init, git add, git commit, and git push

Tech

Git and GitHub for beginners

Git saves snapshots of your project on your computer, and GitHub keeps them online so you can share them. Here's what each one is, the commands you'll use…

5 min read

Your code sends a GET request to an API, and the API sends back a 200 OK response with JSON

Tech

What is an API?

An API is a way for one program to ask another program for something. Here's how APIs work, a real request with fetch, what a REST API is, and the browser…

5 min read

Three tiles: React, a library; Angular, a full framework; and Vue, a progressive framework

Tech

Should you learn React, Angular, or Vue?

React is a library, Angular is a full framework, and Vue is a framework that grows with your app. Here's the same component in all three, a side-by-side…

5 min read

Frontend system design for interviews and real projects: how to prepare, what to avoid, and how the parts of a web app fit together.

DSA

Data structures and algorithms for frontend developers: which topics matter, how to practice, and how coding interviews use them.

Title card: in what order should you learn DSA, with a path from Big O to hashing, trees, graphs, and dynamic programming

DSA

In what order should you learn DSA?

DSA topics stack up, and a topic learned before the ones it rests on feels much harder than it is. Here's the order to learn them in, what each stage adds…

4 min read

Title card: do frontend developers need DSA, with three pairs: the DOM is a tree walk, undo is two stacks, and a bundler is a graph sort

DSA

Do frontend developers need DSA?

If your interviews have a coding round, yes. And the same ideas run under the DOM, React, and the tools you use every day. Here's which DSA topics matter most…

4 min read

Learning JavaScript and preparing for JavaScript interviews: study plans, clear explanations, and what to focus on.

Five steps joined by arrows: the basics, real data, how JavaScript runs your code, async code, and the browser

JavaScript

What to learn after JavaScript basics

Once variables, loops, and functions feel easy, learn to work with real data, then how JavaScript runs your code, then async code and the browser. After that…

4 min read

Three steps joined by arrows: explain a concept, like what a closure is; predict the output, like 1, 4, 3, 2; and write the code, like debounce

JavaScript

How to prepare for a JavaScript interview

Relearn the few ideas JavaScript questions are built on, practice predicting what code logs, write the classic utilities against tests, and rehearse your…

4 min read

A timeline bar split into four milestones: the basics in a few weeks, real data in about a month, how it works in about two months, and the browser in one to two months

JavaScript

How long does it take to learn JavaScript?

The basics take a few weeks. Knowing how JavaScript really works, and building interactive pages with it, takes about six months at an hour a day. Here's each…

4 min read

TypeScript for JavaScript developers: how it differs, when it's worth it, and how to get good at it.

Four chips: explain a concept, predict the types, write the code, and say it out loud

TypeScript

How to prepare for a TypeScript interview

Get the core of the type system solid, practice explaining, predicting, and writing types, and say your answers out loud. Here's what to study, how to…

4 min read

Learning React and preparing for React interviews: study plans, clear explanations, and common pitfalls.

Five steps joined by arrows: plan the state, build a static version, add state and events, handle the edges and the keyboard, then clean up

React

How to prepare for a React machine coding round

A machine coding round asks you to build working React UI against the clock. Here's how to spend the first few minutes, what order to build in, which skills…

4 min read

A bar split into four parts: the basics in two to three weeks, everyday React in about five more weeks, going further in about four more weeks, and React's internals as an optional extra

React

How long does it take to learn React?

With JavaScript behind you, an hour a day gets you building small React components in two to three weeks, and through state, effects, and loading data in…

4 min read

Two mistakes in red, each with its fix in green: onClick={save()} becomes onClick={save}, and items.length && becomes items.length > 0 &&

React

Common React mistakes beginners make

Beginners trip over the same few React mistakes: changing state directly, a stray 0 from &&, index keys, and effects that never clean up. Here's what each one…

5 min read

Next.js for React developers: how it differs from React, when to use it, and how to learn it.

Title card: Next.js vs React, showing React plus routing, HTML from the server, data on the server, and the build, which together make Next.js

Next.js

Next.js vs React, and which one to learn first

React draws the user interface. Next.js is a framework built on React that adds routing, HTML from the server, data loading, and a build. Here's how they…

5 min read

Title card: is Next.js good for SEO, with chips for the title tag, sitemap.xml, robots.txt, canonical, and JSON-LD

Next.js

Is Next.js good for SEO?

Next.js sends HTML with your content and tags already in it, and has built-in tools for titles, sitemaps, robots rules, and canonical addresses. Here's how it…

5 min read

Title card: is Next.js frontend or backend, with browser chips for Client Components and hydration linked to server chips for Server Components, Server Actions, and Route Handlers

Next.js

Is Next.js frontend or backend?

Next.js builds the pages people see, and it also runs your server code: Server Components, Server Actions, and Route Handlers. Here's which parts run where…

5 min read

Making websites fast: Core Web Vitals, measuring real users, and the fixes that move the numbers.

Title card: why is my website slow, and how do you fix it, with four steps in a row: real visits, the failing metric, its biggest part, and fix then measure

Web performance

Why is my website slow, and how do you fix it?

A slow site usually comes down to a few causes. Here's how to find yours from real visits, which Core Web Vital points where, and which fix to make first.

5 min read

Web Components for frontend developers: how they work, when to use them, and how they compare to frameworks.

Starting and growing as a frontend developer: what the job is, what to learn, projects, portfolios, and interviews.

Title card for what is frontend development, with three blocks: HTML gives structure, CSS adds style, and JavaScript adds behavior

Career

What is frontend development?

Frontend development is building the part of a website that people see and use. Here's what frontend developers do, how HTML, CSS, and JavaScript work…

5 min read

Title card for how to build a frontend developer portfolio, with three project cards, a landing page, a weather app, and a shopping cart, each with a demo link and a code link

Career

How to build a frontend developer portfolio

A good portfolio shows three to five of your best projects, each with a live demo, its code, and what you learned. Here is what to include, how to present…

5 min read

Title card for frontend vs backend vs full-stack developer, with three blocks: frontend in the browser, backend on servers with data, and full stack covering both sides

Career

Frontend vs backend vs full-stack developer

A frontend developer builds what you see in the browser, a backend developer builds the servers and data behind it, and a full-stack developer does both. Here…

4 min read

Title card for frontend projects for beginners, with four steps rising from HTML and CSS to JavaScript, loading data, and React

Career

10 frontend projects for beginners

Small, finished projects teach more than big, abandoned ones. Here are ten frontend projects for beginners, from a profile page to a React game, with what…

4 min read

Title card for the frontend developer roadmap, with a bar of eight stages: HTML and CSS, JavaScript, Git and tools, React, TypeScript, Next.js, quality, and interviews

Career

Frontend developer roadmap for beginners

Learn HTML and CSS first, then JavaScript, then Git and a few tools, then React, TypeScript, and Next.js. Here is each stage of the frontend developer…

5 min read

Title card for frontend developer interview questions, with five blocks: HTML and CSS, JavaScript, React, system design, and coding

Career

Frontend developer interview questions and answers

Frontend interviews mix five kinds of questions: HTML and CSS, JavaScript, React, system design, and coding. Here are classic examples of each with a one-line…

5 min read

How web pages are built and styled: layout with flexbox and grid, the box model, units, and responsive design.

Title card for Tailwind CSS vs CSS, comparing a .save-button rule with padding 0.5rem 1rem to the Tailwind classes px-4 py-2, next to the blue Save button both produce

HTML and CSS

Should you use Tailwind CSS or plain CSS?

Tailwind CSS styles elements with small utility classes in your HTML, while plain CSS uses your own rules in a stylesheet. Here's the same button written both…

5 min read

Title card for what is responsive web design, with the same cards laid out in one column on a phone, two on a tablet, and three on a laptop

HTML and CSS

What is responsive web design?

Responsive web design means one page that fits any screen, from a phone to a wide monitor. Here's what the viewport meta tag does, how fluid layouts and media…

5 min read

Title card for px vs em vs rem in CSS, with three blocks: px is a fixed size, em follows the local font size, and rem follows the root font size

HTML and CSS

px vs em vs rem in CSS

px is fixed, em follows the font size of the element or its parent, and rem follows the root font size. Here's how each one works out in pixels, why em…

4 min read

Title card for what is CSS specificity, with selectors ranked from weakest to strongest: p at 0-0-1, .note at 0-1-0, #intro at 1-0-0, an inline style, then !important

HTML and CSS

What is CSS specificity?

When your CSS doesn't apply, another rule is usually winning. Here's how the browser scores selectors, why one ID beats any number of classes, where inline…

5 min read

Three blocks joined by plus signs: HTML for structure with a button tag, CSS for style with a button rule, and JavaScript for behavior with a line that adds one

HTML and CSS

What do HTML, CSS, and JavaScript each do?

HTML gives a web page its structure, CSS gives it its style, and JavaScript makes it respond. Here's what each one does, one small page built in all three…

4 min read

A dashed box with guide lines through its middle and a card reading place-items: center sitting exactly in the center

HTML and CSS

How to center a div with CSS

Centering a div is easy once you know which box to style. Here are the five reliable ways, from grid and flexbox to margin auto, each with a short code sample…

5 min read