Skip to content

Files

Latest commit

09199ae · Apr 16, 2025

History

History
This branch is 20 commits ahead of main.

astro-react-18

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 29, 2025
Jan 29, 2025
Jan 29, 2025
Jan 29, 2025
Jan 29, 2025
Jan 29, 2025
Apr 16, 2025
Jan 29, 2025

Example: An Astro project with TypeScript and React 17

This shows the usage of CMS design system components in a TypeScript-enabled Astro project. This project is specifically for demonstrating our library's compatibility with React 18.

In this project, the design system package is installed as an npm dependency. Refer to install using npm for instructions on how to install the design system as a dependency package.

Getting started

  1. Install packages at the root of this repository (see root README)
  2. Start the application: npm run start

🧞 Commands

All commands are run from the root of the project, from a terminal:

Command Action
npm run dev Starts local dev server at localhost:4321
npm run build Build your production site to ./dist/
npm run preview Preview your build locally, before deploying
npm run astro ... Run CLI commands like astro add, astro check
npm run astro -- --help Get help using the Astro CLI

Check out the Astro documentation.