You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Astro v5.3.0
Node v18.20.3
System Linux (x64)
Package Manager npm
Output static
Adapter none
Integrations @astrojs/solid-js
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
As far as I can see, I can add JSX components through e.g. SolidJS, and if I don't add a client directive, I would say there's no javascript loaded with the component.
If this is true, is it a legit way to use JSX components in addition to the .astro components for a static, zero-js website?
---import{ Example }from'../components/Example.jsx'---<htmllang="en"><head><metacharset="utf-8"/><linkrel="icon"type="image/svg+xml"href="/favicon.svg"/><metaname="viewport"content="width=device-width"/><metaname="generator"content={Astro.generator}/><title>Astro</title></head><body><h1>Astro</h1><Example/></body></html>
If I am wrong and there's javascript packed within this approach, then nothing.
If this is working as a zero-js way to use JSX components, it could be not intended and deprecated in the future, or not.
Thanks florian, I knew, but my concern is that this is not in the documentation, and if it is not there, it means it may not be a feature (and then a bug).
So you confirm that I can use this confidently that there will be zero javascript shipped in this way. Thanks a lot :)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
As far as I can see, I can add JSX components through e.g. SolidJS, and if I don't add a client directive, I would say there's no javascript loaded with the component.
If this is true, is it a legit way to use JSX components in addition to the .astro components for a static, zero-js website?
What's the expected result?
If I am wrong and there's javascript packed within this approach, then nothing.
If this is working as a zero-js way to use JSX components, it could be not intended and deprecated in the future, or not.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-lzadmmzz?file=src%2Fpages%2Findex.astro
Participation
The text was updated successfully, but these errors were encountered: