#Is it possible to pass Astro component from is:inline Javascript?
8 messages · Page 1 of 1 (latest)
This is not possible, Astro components are rendered on the server and cannot be used client side inside <script> tags, a UI Framework would probably be easiest
Thank you.
My understanding is that I can implement React for just one component, is that correct? Is there any template React component I can refer to?
Yes, there is an official React example here: https://github.com/withastro/astro/tree/main/examples/framework-react
Thank you!
Can I call Astro components inside a React component when trying to use Ajax to refresh content?
Sorry I missed your message but no, server side Astro components cannot be used client side