Skip to main content
CodingMarble

Career and roadmaps

Frontend Developer Roadmap: What to Learn, In Order

Learn frontend in this order: semantic HTML and accessibility, CSS layout, JavaScript, Git, one framework (React, then Next.js), TypeScript, testing, performance and tooling. Each stage builds on the previous one, and each should end with something you built, not a lesson you finished.

By CodingMarble · Published · 5 min read

A person holding a notepad and pen, seen from above
Photo: Marissa Grootes on Unsplash

The order, and why it matters

Frontend roadmaps often look like a wall of logos. The useful question is not what exists but what depends on what. A framework such as React is JavaScript that generates HTML, so it assumes you can read both. TypeScript is JavaScript with types, so it assumes the language. Testing assumes you have something worth testing. Learning in dependency order means each new thing makes sense because of the last one, and the confusing errors you meet are smaller.

This is a plan, not a schedule. People take different lengths of time at each stage, and that is fine. Move on when you can complete the stage's build task without copying, not when a number of weeks has passed.

HTML semantics, accessibility and CSS layout

Start with HTML that says what things are: headings in order, landmarks such as header, nav, main and footer, lists, buttons for actions and links for navigation, and labels connected to form fields. This is where accessibility begins, because assistive technology reads that structure. A page built from nested div elements with click handlers may look right but be unusable with a keyboard or a screen reader.

Then learn CSS properly instead of copying snippets: the box model, the cascade and specificity, Flexbox for one-dimensional layouts and Grid for two-dimensional ones, relative units, custom properties and responsive design from a small screen up. MDN covers all of this in detail. Build a multi-section page and a layout cloned from a site you like, at three widths, and check it with the keyboard alone.

Practical tip: unplug the mouse, or just do not touch it, and complete a task on your own page using Tab, Shift+Tab, Enter and Space. Anything you cannot reach or cannot see focus on is an accessibility bug to fix.

JavaScript and Git

JavaScript is the stage that decides how comfortable the rest will be, so give it time. Cover values and types, functions and scope, arrays and objects with their methods, closures, the DOM and events, modules, promises with async and await, and how to read errors in the browser console. javascript.info is a thorough free resource, and MDN is the reference for individual features.

Learn Git beside it, because every project from here on should live in a repository: commits, branches, merging, pull requests and resolving conflicts. For build tasks, make an interactive page without any framework, such as a filterable list, a form with validation or a small game, and keep the code organised in modules. Writing it without a framework is what makes a framework's value visible later.

A framework: React, with a path to Next.js

Pick one framework and finish a real project in it before looking at another. React is a common choice because of its large ecosystem, though the ideas, components, props, state, and rendering as a function of data, transfer to others. Learn it from the official documentation: components and JSX, props, state and effects, lists and keys, forms, context, and custom hooks. Understand why an effect exists before you reach for one, since overusing effects is a common source of bugs.

After you can build a multi-page React app with routing and data fetching, move to Next.js. It adds file-based routing, server rendering, data loading on the server and deployment conventions. Check the current Next.js documentation for how its router and rendering model work, because they change between versions. The guides on this site about server components and speeding up a Next.js site are useful next reads once you reach this stage.

Build tasks here: a small app that fetches and displays data with search and filters; then a multi-page site with a blog or catalogue; then deploy it. Make the loading, empty and error states part of the work, not an afterthought.

TypeScript and testing

Add TypeScript once you have felt the pain it solves: passing the wrong shape of object to a function, or renaming a property and missing one use. Start by typing props, function parameters and API responses; do not try to master advanced generics first. Convert one of your existing projects file by file, which teaches more than starting fresh.

Testing teaches you to write code that can be checked. Start with unit tests for pure logic, then component tests that render a component and interact with it the way a user would, then one or two end-to-end tests of the most important flow. Choose the tools your framework's documentation recommends. A small number of tests on the parts that would hurt most if they broke is worth more than a high count of shallow ones.

TypeScript· A typed API response and a function that uses it
type Product = {
  id: number;
  name: string;
  inStock: boolean;
};

async function loadProducts(url: string): Promise<Product[]> {
  const res = await fetch(url);
  if (!res.ok) {
    throw new Error("Request failed with status " + res.status);
  }
  return (await res.json()) as Product[];
}

export function availableNames(products: Product[]): string[] {
  return products.filter((p) => p.inStock).map((p) => p.name);
}

Performance, Core Web Vitals and tooling

Performance is part of the job because users feel it. Learn what Core Web Vitals measure, how to read a Lighthouse or PageSpeed report, and the usual causes of poor results: oversized images, blocking scripts, large JavaScript bundles and layout shifts from elements without reserved space. Measure first, change one thing, measure again. Do not rely on a score alone; check the page on a real mid-range phone and a slow connection.

Tooling should come when you need it. Know what a package manager does, what a bundler or build tool does for you, how a linter and formatter keep a codebase consistent, and how to read the browser's developer tools: elements, network, performance and accessibility panels. You will not need to configure these from scratch at first, but you should know what they are doing when something breaks.

Avoiding tutorial hell, and what to postpone

Tutorial hell is the loop of finishing a course, feeling that you understood it, and being unable to start anything on your own. The remedy is a ratio: for each hour of instruction, spend at least an hour building something the instructor did not describe. When you are stuck, read the error, search the documentation, and try a change before looking at a solution. Rebuild a finished tutorial from a blank folder with the video closed; the places where you stall show what you did not learn.

Give yourself a short list of things to postpone. Animation libraries, three-dimensional graphics, state management libraries, micro-frontends, advanced build configuration and a second framework can all wait until a project demands them. Learning them early adds vocabulary without adding ability. Choose projects that need the next skill, learn that skill, and let your project list, not a roadmap graphic, decide what comes after.

Need this built properly for your business?

CodingMarble is a remote studio in India that builds websites, apps and games on fixed packages with the scope written down before payment. Try the free tools we run, or start a project when you are ready.