summaryrefslogtreecommitdiff
path: root/examples/framework-react/README.md
blob: 51eaa7f93f0b13e97d6fce1ce39cde6bcc6c971c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# Using React with Astro

```
npm init astro --template framework-react
```

This example showcases Astro's built-in support for [React](https://reactjs.org/).

No configuration is needed to enable React support—just start writing React components in `src/components`.

> **Note**: If used, components _must_ include the JSX factory (ex. `import React from "react"`). Astro is unable to determine which framework is used without having the [JSX factory](https://mariusschulz.com/blog/per-file-jsx-factories-in-typescript#what-is-a-jsx-factory) in scope.