Become a Pro / website · becomeapro.ai / src / components / json-ld.tsx
| 1 | // schema.org structured data for search engines. "<" is escaped so page text can't close the script tag. |
| 2 | export function JsonLd({ data }: { data: object | object[] }) { |
| 3 | return ( |
| 4 | <script |
| 5 | type="application/ld+json" |
| 6 | dangerouslySetInnerHTML={{ __html: JSON.stringify(data).replace(/</g, "\\u003c") }} |
| 7 | /> |
| 8 | ); |
| 9 | } |