Typed Schema.org JSON-LD in React
npm install react-schemaorg  
Easily insert valid Schema.org JSON-LD in your React apps.
This library provides for plain React apps, and helmetJsonLdProp()
for use with .
Uses schema-dts for Schema.org
TypeScript definitions.
Note: This is not an officially supported Google product.
Install react-schemaorg and
your desired version ofschema-dts:
``sh`
npm install schema-dts
npm install react-schemaorg
To insert a simple JSON-LD snippet:
`tsx
import { Person } from "schema-dts";
import { JsonLd } from "react-schemaorg";
export function GraceHopper() {
return (
item={{
"@context": "https://schema.org",
"@type": "Person",
name: "Grace Hopper",
alternateName: "Grace Brewster Murray Hopper",
alumniOf: {
"@type": "CollegeOrUniversity",
name: ["Yale University", "Vassar College"],
},
knowsAbout: ["Compilers", "Computer Science"],
}}
/>
);
}
`
Certain
management libraries require