diff options
author | 2023-09-28 15:48:03 +0200 | |
---|---|---|
committer | 2023-09-28 15:48:03 +0200 | |
commit | ec249f7a983926ba89248a3cc88cb1100a85168f (patch) | |
tree | 3232def95dc4cb3aa832f1ab4e44903b6986fc9e /packages/integrations/react | |
parent | 0ab19ba6152ea56c1fffaf9810465b4c29704398 (diff) | |
download | astro-ec249f7a983926ba89248a3cc88cb1100a85168f.tar.gz astro-ec249f7a983926ba89248a3cc88cb1100a85168f.tar.zst astro-ec249f7a983926ba89248a3cc88cb1100a85168f.zip |
update all the readme's for expressive code (#8691)
Co-authored-by: HiDeoo <HiDeoo@users.noreply.github.com>
Co-authored-by: Genteure <Genteure@users.noreply.github.com>
Co-authored-by: Bryce Russell <brycetrussell@gmail.com>
Co-authored-by: Reuben Tier <TheOtterlord@users.noreply.github.com>
Co-authored-by: Hippo <hippotastic@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Kevin Zuniga Cuellar <kevinzunigacuellar@users.noreply.github.com>
Diffstat (limited to 'packages/integrations/react')
-rw-r--r-- | packages/integrations/react/README.md | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/packages/integrations/react/README.md b/packages/integrations/react/README.md index 00a574c54..d9a3b473c 100644 --- a/packages/integrations/react/README.md +++ b/packages/integrations/react/README.md @@ -42,15 +42,16 @@ npm install react react-dom Now, apply this integration to your `astro.config.*` file using the `integrations` property: -```js ins={3} "react()" -// astro.config.mjs -import { defineConfig } from 'astro/config'; -import react from '@astrojs/react'; - -export default defineConfig({ - // ... - integrations: [react()], -}); +```diff lang="js" "react()" + // astro.config.mjs + import { defineConfig } from 'astro/config'; ++ import react from '@astrojs/react'; + + export default defineConfig({ + // ... + integrations: [react()], + // ^^^^^^^ + }); ``` ## Getting started @@ -72,6 +73,7 @@ Use the `include` (required) and `exclude` (optional) configuration options to s We recommend placing common framework components in the same folder (e.g. `/components/react/` and `/components/solid/`) to make specifying your includes easier, but this is not required: ```js +// astro.config.mjs import { defineConfig } from 'astro/config'; import preact from '@astrojs/preact'; import react from '@astrojs/react'; |