🌐 Web Development

Frontend

Frontend

The frontend is the client-side part of a web application that users see and interact with directly. Based on HTML, CSS, and JavaScript, it builds modern UIs with frameworks such as React, Vue, and Angular.

πŸ“– Detailed Explanation

Frontend is everything in a web application that users see and interact with directly. It is code that runs in the browser, implementing structure with HTML, style with CSS, and behavior with JavaScript. It is also called "client-side" and is contrasted with the backend, which is processed on the server.

The core of modern frontend development is component-based architecture. Frameworks such as React, Vue, Angular, and Svelte manage complex interfaces by separating the UI into reusable components. A diverse ecosystem has developed around state management (Redux, Zustand, Pinia), routing, form handling, and more.

Frontend developers must go beyond simply implementing designs and also consider performance optimization, accessibility (a11y), SEO, responsive design, and cross-browser compatibility. As performance metrics such as Core Web Vitals (LCP, FID, CLS) affect search rankings, the importance of technical quality has grown even further.

Recent trends include server components, hybrid rendering (SSR/SSG/ISR), and Edge Computing, which are blurring the boundary between server and client. Meta-frameworks such as Next.js, Nuxt, and SvelteKit provide a development experience close to full-stack, and the role of frontend developers is expanding.

πŸ’» Code Example

// React μ»΄ν¬λ„ŒνŠΈ 예제 - μ‚¬μš©μž ν”„λ‘œν•„ μΉ΄λ“œ
import { useState, useEffect } from 'react';
import styles from './ProfileCard.module.css';

interface User {
  id: number;
  name: string;
  email: string;
  avatar: string;
}

export function ProfileCard({ userId }: { userId: number }) {
  const [user, setUser] = useState<User | null>(null);
  const [isLoading, setIsLoading] = useState(true);

  useEffect(() => {
    async function fetchUser() {
      try {
        const response = await fetch(`/api/users/${userId}`);
        const data = await response.json();
        setUser(data);
      } finally {
        setIsLoading(false);
      }
    }
    fetchUser();
  }, [userId]);

  if (isLoading) return <div className={styles.skeleton} />;
  if (!user) return <div>μ‚¬μš©μžλ₯Ό 찾을 수 μ—†μŠ΅λ‹ˆλ‹€</div>;

  return (
    <article className={styles.card}>
      <img
        src={user.avatar}
        alt={`${user.name}의 ν”„λ‘œν•„`}
        className={styles.avatar}
        loading="lazy"
      />
      <h2 className={styles.name}>{user.name}</h2>
      <p className={styles.email}>{user.email}</p>
    </article>
  );
}

/* ProfileCard.module.css */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.email {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* λ°˜μ‘ν˜• λ””μžμΈ */
@media (max-width: 768px) {
  .card {
    padding: 1.5rem;
  }
}

/* 닀크 λͺ¨λ“œ 지원 */
@media (prefers-color-scheme: dark) {
  .card {
    --card-bg: #1e293b;
    --text-secondary: #94a3b8;
  }
}

πŸ—£οΈ Examples of Practical Conversations

πŸ‘¨β€πŸ’Ό Technical interviewer
"What do you consider most important in frontend development?"
πŸ‘¨β€πŸ’» Candidate
"User experience. Technically, I value performance (Core Web Vitals), accessibility (screen reader compatibility, keyboard navigation), and responsive design. Loading speed and interaction responsiveness have a greater impact on actual user satisfaction than flashy animations."
πŸ‘©β€πŸ’Ό PM
"How should we decide the frontend tech stack for this project?"
πŸ‘¨β€πŸ’» Frontend Lead
"You need to consider the team's experience level and the project requirements. If SEO is important, use SSR with Next.js or Nuxt; for internal tools like dashboards, an SPA is enough. I'd say keep TypeScript as a must, and for state management, choose between the Context API and Zustand depending on the scale."

Take a mock interview on this topic β†’ WIA SOOM AI Interview Β· Start for free

⚠️ Cautions

πŸ”— Related Terms

πŸ“š Learn More