[리액트 2부] 2.2 라우터 1
Read Original이 글은 리액트 애플리케이션에서 브라우저 History API를 활용해 클라이언트 사이드 라우팅을 직접 구현하는 방법을 다룹니다. 주소(pathname)에 따라 다른 컴포넌트를 렌더링하는 기본 원리부터 시작하여, 웹팩 개발 서버의 historyApiFallback 설정, 싱글페이지 애플리케이션(SPA)의 라우팅 개념, 그리고 a 태그의 기본 동작을 막는 커스텀 Link 컴포넌트 제작까지 상세히 설명하는 기술 튜토리얼입니다.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser
Top of the Week
1
Using A Hidden Submit Button To Ensure Unnamed Submissions
Ben Nadel
•
2 votes
2
Agentic AI and Security
Martin Fowler
•
2 votes
3
Springs and Bounces in Native CSS
Josh Comeau
•
2 votes
4
uv+just for testing multiple Python versions
Daniel Feldroy
•
2 votes
5
Importing vs fetching JSON
Jake Archibald
•
2 votes
6
ServiceNow and Microsoft Copilot
Marius Sandbu
•
1 votes
7
The Learning Loop and LLMs
Martin Fowler
•
1 votes
8
🧠 Build an Agent Chat that Remembers — Persisting Conversations with Microsoft Agent Framework
Bruno Capuano
•
1 votes