Skip to content

Commit

Permalink
adding react support initial
Browse files Browse the repository at this point in the history
  • Loading branch information
cf2013 committed Jun 11, 2023
1 parent 5b6cee4 commit 04b14cd
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 7 deletions.
14 changes: 8 additions & 6 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { defineConfig } from 'astro/config'
import compress from 'astro-compress'
import mdx from '@astrojs/mdx'
import tailwind from '@astrojs/tailwind'
import { defineConfig } from 'astro/config';
import compress from 'astro-compress';
import mdx from '@astrojs/mdx';
import tailwind from '@astrojs/tailwind';

import react from "@astrojs/react";

// https://astro.build/config
export default defineConfig({
integrations: [compress(), mdx(), tailwind()],
})
integrations: [compress(), mdx(), tailwind(), react()]
});
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,12 @@
"sass": "^1.49.9",
"svgo": "^2.8.0",
"tailwindcss": "^3.2.7"
},
"dependencies": {
"@astrojs/react": "^2.2.1",
"@types/react": "^18.2.11",
"@types/react-dom": "^18.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
}
Empty file.
Empty file added src/components/CompanyViewer.ts
Empty file.
2 changes: 1 addition & 1 deletion src/pages/btc-how-works.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Notification } from 'accessible-astro-components'
<Notification type="info">
<Icon pack="ion" name="information-circle-outline" />
<p>
<strong>Info:</strong> La siguiente es una recopilación de los mejores trabajos explicando como usar bitcoin, mi contribución a lo máximo es la traducción al español, derechos reservados de los creadores.
<strong>Info:</strong> La siguiente es una recopilación de los mejores trabajos explicando como funciona bitcoin, mi contribución a lo máximo es la traducción al español, derechos reservados de los creadores.
</p>
</Notification>

Expand Down
7 changes: 7 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "astro/tsconfigs/base",
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "react"
}
}

0 comments on commit 04b14cd

Please sign in to comment.