Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ReactJS Roadmap

Giới thiệu

ReactJS là thư viện JavaScript mã nguồn mở do Facebook (Meta) phát triển, dùng để xây dựng giao diện người dùng (UI) theo mô hình component-based. React sử dụng Virtual DOM để tối ưu hóa quá trình cập nhật giao diện.

Mục lục

#Mảng Kiến ThứcMô tả
1JSX & RenderingJSX syntax, Virtual DOM, Conditional rendering, List rendering
2Components & PropsFunctional components, Class components, Props, Children
3Hooks Cơ bảnuseState, useEffect, useRef, useId
4Hooks Nâng caouseReducer, useMemo, useCallback, useLayoutEffect, Custom Hooks
5Context APIcreateContext, useContext, Provider pattern
6Redux & Redux ToolkitStore, Slice, Thunk, RTK Query
7React QueryData fetching, Caching, Mutations, Pagination
8React RouterRoutes, Navigation, Nested routes, Protected routes
9Forms & ValidationControlled forms, React Hook Form, Zod validation
10StylingCSS Modules, styled-components, Tailwind CSS
11PerformanceMemo, Code splitting, Lazy loading, Profiler
12TestingJest, React Testing Library, Mock API
13React PatternsHOC, Render Props, Compound Components, Portals
14Next.js Cơ bảnSSR, SSG, ISR, App Router, Server Components

Hướng dẫn sử dụng

  1. Bắt đầu từ nền tảng: JSX → Components → Hooks
  2. State Management: Context API cho app nhỏ, Redux/Redux Toolkit cho app lớn
  3. Data Fetching: React Query là tiêu chuẩn hiện đại
  4. Thực hành: Mỗi chủ đề đều có code example thực tế

Note: Tài liệu này tập trung vào React 18+ với functional components và hooks. Class components chỉ được đề cập để hiểu legacy code.