/react-server-actions-jsx

Example Next.js app with server actions returning JSX

Primary LanguageTypeScript

react-server-actions-jsx

An example code for the article Returning JSX from React Server Actions.

How to run

  1. Clone the repo

    git clone https://github.com/vitalets/react-server-actions-jsx.git
    
  2. Change directory to react-server-actions-jsx

    cd react-server-actions-jsx
    
  3. Install dependencies

    npm install
    
  4. Run app

    npm run dev
    
  5. Open http://localhost:3000

Demo