Next@13 App Directory 예제
Menu
Layouts
Nested Layouts
Grouped Layouts
File Conventions
loading.js
error.js
head.js
Data Fetching
Static-Site Generation
Server-Side Rendering
Incremental Static Regeneration
Streaming with Suspense
Components
Client context
Styles
CSS and CSS-in-JS
Server Action
form action
form action with data
form action with useTransition
Home
Server action (alpha)
서버 액션은 컴포넌트에서 직접 서버사이드 데이터 조작을 할 수 있게 해주는 nextjs의 새로운 기능이다.
13.4.0 기준으로 실험 기능이므로, `next.config.js`에서 `experimental.serverActions = true`로 설정해두어야 한다.
서버 액션에서 할 수 있는 것들을 서브 메뉴로 확인해보자.