withastro / docs

Astro documentation
https://docs.astro.build/
MIT License
1.31k stars 1.47k forks source link

Update manual install instructions for some UI frameworks #9526

Open JusticeMatthew opened 5 days ago

JusticeMatthew commented 5 days ago

📚 Subject area/topic

Client-Side Interactivity

📋 Suggested page

https://docs.astro.build/en/guides/framework-components/

📋 General description or bullet points (if proposing new content)

The manual installation instructions for some UI frameworks do not include info about setting additional options in a ts.config when they are required (and are set by the astro CLI when using astro add)

As an example, when using npx astro add react the following is added to your TS config by the CLI:

  "compilerOptions": {
    "jsx": "react-jsx",
    "jsxImportSource": "react"
  }

However the manual installation instructions do not tell the user to add these options, which has resulted in issues for users.

🖥️ Reproduction of code samples in StackBlitz

No response

JusticeMatthew commented 5 days ago

I just wanted to get the issue opened, when I have some time today I will check and see which other frameworks adjust the TS config and post here what they add