Branchwell

AI Resource Pro / website · airesourcepro.com / src / components / json-ld.tsx

Raw 330 B on b7854f3692d64213a2fce644d0b5101d3e345b03
1// schema.org structured data for search engines. "<" is escaped so page text can't close the script tag.
2export 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}