docs: Add notice about StaticQuery only working with JSX (#9960)
docs: Add notice about StaticQuery only working with JSX (#9960)

* Add notice about StaticQuery only working with JSX

* Update docs/docs/static-query.md

Co-Authored-By: Siilwyn <e55e91b2cc22ba117ba8d1546537f7a4c037cf67@selwyn.cc>

gatsbyjs/gatsby,ChristopherBiscardi/gatsby,ChristopherBiscardi/gatsby,0x80/gatsby,gatsbyjs/gatsby,0x80/gatsby,0x80/gatsby,ChristopherBiscardi/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,ChristopherBiscardi/gatsby