Chapter 01What does frontend development actually include?
Short answerFrontend development is everything a person sees and touches in the browser: layout, interaction, forms, accessibility, speed and the way the screen talks to backend data. It sits between design and backend engineering and shapes how a product feels.
A frontend engineer turns designs into working screens. That sounds simple, but a modern web product asks a lot of the browser. It must load quickly on a slow phone connection, work with a keyboard and a screen reader, keep data in sync with a server, handle errors gracefully and stay easy to change as the product grows.
Frontend work usually includes:
- Markup and layout: semantic HTML and CSS that adapts to every screen size.
- Interaction: forms, menus, drag and drop, real time updates and animation.
- Data: fetching, caching and updating information from APIs.
- Quality: tests, accessibility checks and performance budgets.
- Delivery: builds, deployments and monitoring of real user errors.
Good frontend engineers also act as translators. They help designers understand what is cheap or costly to build, and help backend engineers shape APIs that make screens simple. When frontend work is treated as just "making it look like the design", products tend to become slow and fragile over time.
Chapter 02How do you choose between React, Vue and Angular?
Short answerStart from your product, your team and your hiring plans, not from trends. React has the largest ecosystem and hiring pool, Vue is the simplest to learn, and Angular gives large teams strong conventions. All three can build excellent products.
Framework debates generate more heat than light. In practice, any of the main options can deliver a fast, reliable product when the team knows it well. The better questions are about your situation.
Questions that actually decide it
- Who is on the team today? Existing skills are worth a lot. Switching frameworks costs months of reduced output.
- Who will you hire next? React has the most candidates in most markets. Angular is common in enterprise and banking. Vue is strong with agencies and in parts of Europe and Asia.
- How big will the codebase get? Very large apps with many developers benefit from Angular's structure or from strict conventions in React.
- Does search matter? If public pages must rank, plan for a framework with server rendering such as Next.js or Nuxt.
- What is the backend? Laravel teams often pair with Vue. Java and .NET shops often prefer Angular.
A simple rule of thumb
If you have no strong reason otherwise, React with TypeScript and Next.js is the lowest risk default for a new product, mainly because of hiring and library choice. If your team already knows Vue or Angular well, stay with it. Use the stack picker above to test your own answers.
Chapter 03What is the difference between client side, server side and static rendering?
Short answerClient side rendering builds the page in the browser. Server side rendering builds it on the server for each request. Static generation builds it once ahead of time. Modern frameworks let you mix all three, page by page.
Rendering is about where and when the HTML for a page is produced. It has a big effect on speed, search visibility and hosting cost.
| Mode | How it works | Best for |
| Client side (CSR) | The server sends a near empty page and JavaScript builds it in the browser | Logged in apps and dashboards |
| Server side (SSR) | The server builds full HTML for each request | Personalised or fast changing public pages |
| Static (SSG) | Pages are built once at deploy time and served from a CDN | Marketing pages, docs, blogs |
| Incremental (ISR) | Static pages that rebuild in the background on a schedule or trigger | Large catalogues and content sites |
The common mistake is picking one mode for everything. A product site might serve its home page statically, render product pages on the server with caching, and build the account area in the browser. Next.js and Nuxt make this mix straightforward, but someone has to decide it deliberately for each route.
Server components in React go a step further. Parts of a page render on the server and send no JavaScript to the browser at all, which can make pages much lighter. They also add new rules about where code runs, so teams need to learn them properly before relying on them.
Chapter 04How does the frontend affect search rankings and AI answers?
Short answerSearch engines and AI assistants need fast, readable HTML. Server rendered or static pages, clean headings, structured data, good Core Web Vitals and accessible markup all help pages get found, ranked and quoted.
Search engines can run JavaScript, but they do it later and less reliably than reading plain HTML. AI assistants that browse the web often read only the HTML. If your important content only appears after JavaScript runs, you are making discovery harder than it needs to be.
What the frontend team controls
- Rendering: public pages should arrive as full HTML through server or static rendering.
- Structure: one clear H1, logical headings, descriptive links and lists that machines can parse.
- Metadata: unique titles and descriptions, canonical URLs and Open Graph tags for each page.
- Structured data: JSON LD for products, articles, FAQs and organisations, so search and AI systems understand the page.
- Speed: Core Web Vitals are a ranking signal and, more importantly, they affect whether visitors stay.
- Internal links: real anchor links between related pages, not click handlers on divs.
Answer engines and generative search reward pages that answer questions directly, near the top, in plain language. That is a content job, but the frontend must make it easy: fast pages, clean markup and a structure that keeps the answer visible. See our SEO services and AEO services for the content side.
Chapter 05What are Core Web Vitals and how do you improve them?
Short answerCore Web Vitals are Google's measures of loading speed (LCP), responsiveness (INP) and visual stability (CLS). Improving them usually means smaller JavaScript, optimised images and fonts, smart caching and reserving space for content before it loads.
Google measures three things from real visitors, collected through Chrome:
- Largest Contentful Paint (LCP): how long until the main content, often a hero image or heading, is visible.
- Interaction to Next Paint (INP): how quickly the page responds when someone taps or types.
- Cumulative Layout Shift (CLS): how much content jumps around while loading.
The fixes that usually matter most
- Serve the main image in a modern format at the right size, and tell the browser to load it early.
- Ship less JavaScript: split code by route, remove unused libraries and move work to the server.
- Load fonts efficiently and avoid invisible text while they load.
- Set width and height on images, ads and embeds so nothing shifts.
- Break up long tasks in JavaScript so the page stays responsive.
- Delay third party scripts such as chat widgets and trackers until they are needed.
Measure with real user data first, from Search Console or your own monitoring, then use lab tools such as Lighthouse to find causes. Fixing what lab tools flag without checking real data can waste effort on problems few visitors have.
Chapter 06How do you make a frontend accessible?
Short answerUse semantic HTML, make everything work with a keyboard, give images and controls clear labels, keep colour contrast high and test with screen readers. Aim for WCAG 2.2 AA. Accessibility built in from the start costs far less than fixing it later.
Accessibility means people with disabilities can use your product. It is also a legal requirement in many markets, including under the European Accessibility Act and the Americans with Disabilities Act, and it tends to improve usability and SEO for everyone.
The foundations
- Semantic HTML: real buttons, links, headings, lists and form labels. Many problems come from clickable divs.
- Keyboard use: every action reachable with Tab, Enter and Space, with a visible focus outline.
- Labels: alt text for meaningful images and accessible names for icon buttons.
- Contrast: text and controls that meet WCAG contrast ratios.
- Motion: respect the reduced motion setting and avoid flashing content.
- Forms: clear error messages tied to the right fields, announced to screen readers.
How we test
Automated tools such as axe catch a useful share of issues and belong in the test pipeline. The rest needs people: keyboard walkthroughs, screen reader checks with NVDA and VoiceOver, and zoom testing. Design systems help a lot, because once a component is accessible, every screen that uses it inherits the fix.
Chapter 07How should a frontend manage state?
Short answerSplit state by type. Server data belongs in a data fetching library such as React Query. Form state belongs in a form library. Only truly shared app state needs a global store such as Zustand, Redux Toolkit, Pinia or NgRx.
State is any data the screen depends on. Many frontends become hard to change because all state ends up in one giant global store. A better approach separates state by where it comes from.
| Type | Example | Good tools |
| Server state | Orders, users, products from an API | React Query, SWR, Apollo, Nuxt data fetching |
| Form state | Field values, errors, dirty flags | React Hook Form, VeeValidate, Angular forms |
| URL state | Filters, page number, selected tab | The router and query string |
| Local UI state | Is this menu open? | Component state |
| Shared app state | Theme, current workspace, cart | Zustand, Redux Toolkit, Pinia, NgRx, signals |
Once server data moves into a proper data fetching library, the global store often shrinks to a handful of values. Caching, refetching and loading states then come for free, and bugs where screens show stale data become much rarer.
Chapter 08Which CSS approach should you use?
Short answerTailwind CSS, CSS Modules and component libraries are all sound choices. What matters most is consistency, design tokens shared with the design team and a component library that stops every screen from reinventing buttons and spacing.
Styling choices affect speed of development and long term consistency more than performance. The main options are:
- Utility CSS such as Tailwind: fast to build with, consistent spacing and colours, small final CSS. Markup can get busy.
- CSS Modules or scoped styles: plain CSS scoped to each component. Familiar and predictable.
- CSS in JS: styles written in JavaScript. Flexible, but some libraries add runtime cost and conflict with server components.
- Component libraries: MUI, Angular Material, Vuetify, shadcn/ui or Radix. Quick start, but heavy customisation can fight the library.
Whatever you choose, define design tokens: named values for colours, spacing, type sizes and radii. Keep them in sync with Figma so designers and engineers speak the same language. Then dark mode, rebrands and new products become changes to tokens rather than to hundreds of files.
Chapter 09What is a design system and when do you need one?
Short answerA design system is a shared set of design tokens, components and usage rules used by designers and engineers. You need one when several people or products build screens, because it keeps everything consistent and makes new work faster.
A design system has three parts: tokens such as colours and spacing, components such as buttons, inputs and modals, and guidance on when and how to use each one. The Figma library and the code library should match.
Signs you need one
- Several slightly different buttons exist across the product.
- Designers redraw common patterns for every feature.
- Accessibility fixes have to be repeated screen by screen.
- A second product or a mobile app is on the way.
How we build them
We start small: tokens and the dozen components used most often, documented in Storybook with examples and accessibility notes. Each component gets visual regression tests so changes do not break screens unexpectedly. The library grows as real features need new parts, rather than being designed in full up front and then ignored. See UI and UX design and Figma design.
Chapter 10How should a frontend talk to the backend?
Short answerThrough a well defined API, usually REST or GraphQL, with typed contracts generated from a schema. Agree the API shape early with backend engineers, handle loading and error states everywhere, and never trust the browser with secrets or final validation.
The boundary between frontend and backend is where many bugs live. A few habits remove most of them.
- Agree contracts first: write the API shape in OpenAPI or a GraphQL schema before building, so both sides work in parallel.
- Generate types: create TypeScript types and clients from the schema, so a backend change that breaks the frontend fails the build instead of failing users.
- Design for screens: APIs shaped around what screens need avoid dozens of calls per page. A backend for frontend layer can help.
- Handle every state: loading, empty, error, partial data and slow networks all need designs, not just the happy path.
- Keep secrets on the server: API keys in browser code are public. Use server routes or a backend to call third party services.
REST is simpler to cache and widely understood. GraphQL suits products with many different screens needing different slices of data. tRPC is a good fit when frontend and backend are both TypeScript in one repository. See API development.
Chapter 11What makes a web app feel fast?
Short answerFast apps send less JavaScript, fetch data in parallel, cache sensibly, show useful content immediately and respond to every tap at once, even before the server replies. Perceived speed matters as much as measured speed.
Core Web Vitals measure the first impression. Inside a working app, speed is about how quickly each action feels done.
- Optimistic updates: show the change straight away and roll back only if the server refuses it.
- Prefetching: load the next likely page or data when a user hovers or scrolls near a link.
- Parallel requests: avoid waterfalls where one request waits for another without reason.
- Skeleton screens: show the layout instantly so the page feels responsive while data arrives.
- Virtual lists: render only visible rows in long tables and feeds.
- Bundle discipline: check what each new library adds before installing it, and set a size budget in the build.
We measure with browser profiling and real user monitoring, then fix the slowest common paths first. A single heavy library or an unnoticed loop of re renders is often responsible for most of the slowness in an app.
Chapter 12How should a frontend be tested?
Short answerUse a mix: fast unit and component tests for logic and components, a smaller set of end to end tests for key journeys, visual regression tests for the design system and automated accessibility checks, all running in CI on every pull request.
The aim of testing is confidence to change code quickly. Too few tests and every release is risky. Too many brittle tests and nobody wants to touch anything.
| Layer | What it checks | Common tools |
| Unit | Functions, formatting, business rules | Vitest, Jest |
| Component | A component behaves correctly for users | Testing Library, Storybook tests |
| End to end | Sign up, checkout and other key journeys in a real browser | Playwright, Cypress |
| Visual | Screens and components look as expected | Chromatic, Playwright screenshots |
| Accessibility | Automated WCAG rules | axe, Lighthouse CI |
Write component tests the way users interact: find elements by their label and role, not by class names. Keep end to end tests focused on journeys that make money or would cause real harm if broken. See QA and testing and our QA technologies.
Chapter 13What security risks does a frontend face?
Short answerThe main risks are cross site scripting, leaking secrets in browser code, weak handling of tokens and sessions, unsafe third party scripts and vulnerable npm packages. Frameworks help, but teams still need secure habits and a content security policy.
Anything in the browser can be read and changed by the user. That simple fact drives most frontend security rules.
- Cross site scripting (XSS): never insert untrusted HTML. Frameworks escape output by default, so be careful with the features in React and Vue that insert raw HTML.
- Secrets: no API keys or credentials in frontend code or public environment variables.
- Sessions: prefer secure, HTTP only cookies to storing tokens in local storage.
- Content Security Policy: limit which scripts and sources the page may load.
- Dependencies: scan npm packages for known vulnerabilities and keep them updated.
- Third party scripts: every tag manager and widget can read the page. Keep the list short and reviewed.
Remember that validation in the browser is for user experience only. The backend must check every input and permission again.
Chapter 14When do monorepos or micro frontends make sense?
Short answerA monorepo keeps several apps and shared packages in one repository, which suits teams sharing a design system and types. Micro frontends split one product across independent teams and deployments. They solve team scaling problems but add real complexity.
As products grow, teams start sharing code: a design system, API clients, utilities. A monorepo managed with tools such as Nx or Turborepo keeps these in one place, with builds that only rebuild what changed. For most companies with a few related apps, this is the sensible step.
Micro frontends go further. Different teams own different parts of one product, such as checkout or account, and deploy them separately. This can help organisations with many teams that keep blocking each other. It also brings duplicated dependencies, harder consistency and more complex testing.
Our advice is to reach for micro frontends only when team coordination is the proven bottleneck, not as a starting architecture. A well structured monorepo solves most of the same problems with far less overhead.
Chapter 15How do you migrate an old frontend without a risky rewrite?
Short answerReplace it in slices. Put the new framework alongside the old one, move one route or feature at a time, share styles and authentication between them, and retire old code as each slice goes live. Big bang rewrites usually run late and lose features.
Many teams live with an aging frontend: AngularJS, an old jQuery app, Vue 2 or a React codebase full of class components and outdated libraries. The temptation is to rewrite everything from scratch. That often takes far longer than planned while the old app still needs fixes.
The slice by slice approach
- Audit the current app: routes, usage, pain points and hidden business rules.
- Set up the new framework in the same domain, sharing login and styles.
- Route one low risk section to the new app and release it.
- Move busy, high value sections next, with tests protecting behaviour.
- Delete old code as each section moves, so you never maintain two copies for long.
Framework upgrades such as Vue 2 to Vue 3 or older Angular versions follow the same idea: update in planned steps, with tests and feature flags, rather than one huge branch. See legacy modernization.
Chapter 16What is a headless CMS and should you use one?
Short answerA headless CMS stores and manages content but does not control how it is displayed. Your frontend fetches content through an API. It gives editors a friendly tool and developers full control over speed and design, at the cost of more setup.
Traditional systems like classic WordPress combine content editing and page display. A headless CMS such as Sanity, Contentful, Strapi, Storyblok or headless WordPress separates them. Content is delivered as data, and a frontend built with Next.js or Nuxt decides how it looks.
When headless makes sense
- You need the same content on a website, an app and other channels.
- Speed and design freedom are worth extra engineering.
- Your team already builds with a modern framework.
When traditional is better
- A small team needs a site quickly and cheaply.
- Editors rely on plugins and live visual editing.
- No developer will be around to maintain the frontend.
Preview is the detail people forget. Editors need to see draft content in the real design before publishing, so plan preview mode from the start.
Chapter 17How do you build a frontend for several languages and regions?
Short answerPlan internationalisation from the start: keep all text in translation files, format dates, numbers and currency by locale, support right to left languages where needed, and give each language its own URL with hreflang tags for search.
Adding languages to a product that hard coded English everywhere is slow and error prone. A few early choices make it routine.
- Keep every visible string in translation files from day one, even with one language.
- Use the browser's Intl APIs for dates, numbers and currencies.
- Design layouts that cope with longer words, such as German, and right to left scripts such as Arabic.
- Use separate URLs per language, for example /en/ and /ar/, with hreflang tags so search engines show the right version.
- Decide how translations are managed: a translation platform, the CMS or files in the repository.
For clients in the Gulf, right to left support for Arabic matters. CSS logical properties such as margin inline start make layouts flip correctly with far less effort.
Chapter 18How is AI changing frontend development?
Short answerAI shows up in two ways: in the product, as chat interfaces, streaming answers and smart suggestions, and in the workflow, as coding assistants that speed up routine work. Both need engineers who check the output and keep quality high.
AI features in products bring new frontend patterns. Answers stream in word by word, so interfaces must render partial content smoothly. Users need ways to stop, retry, edit and give feedback. Sources and confidence should be visible, and errors need careful wording. Libraries such as the Vercel AI SDK help, but the user experience still needs design.
AI coding assistants speed up boilerplate, tests and refactoring. Our engineers use them where clients allow, and treat their output like a junior colleague's work: reviewed, tested and understood before it is merged. Speed without review creates subtle bugs and security issues.
If you are adding AI to a product, see AI chatbot development, AI copilot development and AI assisted design.
Chapter 19What should you look for when hiring frontend engineers?
Short answerLook for depth in your framework, strong HTML, CSS and accessibility basics, a habit of testing, good judgement about performance and the ability to explain tradeoffs clearly. Seniority shows in decisions and code reviews, not years.
A strong frontend engineer is more than a framework user. Signs of real skill include:
- Clean semantic HTML and CSS without reaching for a library for everything.
- Understanding how their framework renders and where performance goes.
- Writing tests that describe user behaviour.
- Building accessible components by default.
- Asking good questions about the API and the design before starting.
- Explaining a technical tradeoff in plain language to a product owner.
Levels at a glance
| Level | What they own |
| Mid level | Features end to end within an agreed structure, with light review |
| Senior | Feature areas, technical decisions, reviews and mentoring |
| Lead | Frontend architecture, standards, hiring input and cross team planning |
Javixor Labs provides mid level, senior and lead frontend engineers. See hire frontend developers.
Chapter 20How do you work well with remote frontend engineers?
Short answerAgree overlap hours, share the same tools and rituals as your in house team, keep designs and tickets clear, review code together and give remote engineers real ownership. Treat them as part of the team, not as a ticket queue.
Remote frontend engineers do their best work when they are treated like any other team member. In practice that means:
- Overlap hours: agree a daily window for standups, reviews and quick questions. We agree overlap with US, UK, European, Gulf and Australian teams.
- Same tools: your Slack or Teams, your Jira or Linear, your GitHub or GitLab, your Figma.
- Clear tickets: each task with a design link, acceptance criteria and the API it uses.
- Ownership: give engineers whole features, not scattered fragments.
- Demos: short regular demos keep everyone aligned and catch misunderstandings early.
At Javixor Labs every account has a named delivery lead who runs monthly check ins on hours, work done and feedback, so small issues are dealt with before they grow.
Chapter 21What drives the cost of frontend work?
Short answerCost depends on the number and complexity of screens, how polished the design is, the state of the existing codebase, accessibility and performance targets, integrations and how much testing is needed. Clear designs and APIs reduce cost more than anything else.
Ballpark: $18 to $34 an hour per engineer, about $2,900 to $5,400 a month full time. The right price depends on scope. These are the factors that move it most:
- Scope: number of screens, states and user roles.
- Design readiness: finished Figma designs with a component library save a lot of time compared with designing during build.
- Existing code: a clean codebase is quicker to extend than one that needs untangling.
- Quality targets: WCAG compliance, strict performance budgets and broad browser support add work, and are usually worth it.
- Integrations: payment, search, analytics, CMS and auth providers each add setup and testing.
- Team shape: one engineer added to your team, or a full team with QA and design.
You get a written estimate before anything starts. For staff augmentation, you pay for the engineers you choose for as long as you need them, with no fixed term.
Chapter 22What frontend mistakes cost the most?
Short answerThe costliest mistakes are choosing a framework for hype, rendering public pages only in the browser, putting all state in one global store, skipping accessibility, adding libraries freely, and attempting big bang rewrites.
- Choosing for hype: picking a framework nobody on the team knows because it is popular this year.
- Client only rendering for public pages: slower first loads and weaker search visibility.
- One giant store: all state in Redux or similar, making every change risky.
- Accessibility later: retrofitting it across hundreds of screens costs far more than building it in.
- Library sprawl: several date libraries, two UI kits and heavy packages for small tasks.
- No design system: every feature reinvents buttons and spacing, and the product drifts.
- Big bang rewrites: months of work before any value reaches users.
- Ignoring real user data: optimising lab scores while real visitors on slow phones still wait.
Each of these is easier to prevent than to fix. A short review of an existing frontend by an experienced engineer usually finds the few changes that matter most.
Chapter 23How do you get started with Javixor Labs on frontend work?
Short answerTell us your product, stack, team and goals. A delivery lead replies within one working day. After an NDA, you get engineer profiles to interview or a written plan and estimate for a project. Most engineers start within 72 business hours of a confirmed brief.
- Share the brief: what you are building, your framework, your team and what help you need.
- NDA: we sign yours or send ours before you share details.
- Profiles or plan: engineer profiles for staff augmentation, or a written scope and estimate for a project.
- Interviews: you meet every engineer and choose.
- Start: engineers join your tools and rituals, usually within 72 business hours of a confirmed brief.
- Review: your delivery lead checks in monthly. No fixed term. End with notice.
Not sure which technology fits? Use the stack picker at the top of this page and send us your results, or contact us directly.