Skip to content

mohamedsamara/astro-react

Repository files navigation

Astro + React Example

This project is an example of using astro to build static products pages ahead of time. See dist (build) directory after runnning yarn build. The build will contain each product html page.

Quick start

  1. Clone this repo using git clone https://github.com/mohamedsamara/astro-react.git
  2. Move to the directory: cd <PROJECT_NAME>.
  3. Run yarn install in order to install dependencies.

Start development

yarn dev

Simple build for production

yarn build

Preview production build

yarn preview