This is a simple React 19 app to demonstrate new features in React 19.
- 1- Server Actions with
useActionState
hook - 2- Form Actions with
useFormStatus
hook
- Node.js 18.0 or higher
- npm or yarn
- Clone the repository:
git clone https://github.com/yourusername/react-19.git
cd react-19
- Install dependencies:
npm install
# or
yarn install
- Start the development server:
npm run dev
# or
yarn dev
- Open your browser and navigate to
http://localhost:5173
react-19/
├── src/
│ ├── actions/ # Server actions
│ ├── routes/ # Page components
│ ├── pages/ # Page components
│ └── main.tsx # Entry point
├── package.json
└── README.md
- React 19
- TypeScript
- Vite
- ESLint
- react-router
Feel free to submit issues and pull requests.
MIT License - feel free to use this code for your own projects.