mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
31c24778aa
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> |
||
---|---|---|
.. | ||
src | ||
.gitignore | ||
.npmrc | ||
astro.config.mjs | ||
package.json | ||
README.md |
Using Solid with Astro
This example showcases Astro's built-in support for Solid.
Installation
Automatic
Bootstrap your Astro project with this template!
npm init astro --template framework-solid
Manual
To use Solid components in your Astro project:
-
Install
@astrojs/renderer-solid
npm i @astrojs/renderer-solid
-
Add
"@astrojs/renderer-solid"
to yourrenderers
inastro.config.mjs
.export default { renderers: [ "@astrojs/renderer-solid", // optionally, others... ] }
Usage
Write your Solid components as .jsx
or .tsx
files in your project.