0
10
·
1 min read
Enhancing SEO with JSON-LD Structured Data
Search engines like Google use structured data to understand the contents of our page better. JSON-LD is a format that most use to describe the data.
Structured Data
Below is an example of a piece of structured data.
Source: JSON-LD
Adding Structured Data
- Create the following component
StructuredData.jsx
.
- Use the
StructuredData
component in your respective component containing the UI for your post.
Validate Structured Data
Before deploying the changes to production, we can inspect the HTML elements on a browser to see if the changes are reflected in the <head>
section of the page.
Upon successful deployment, we can use the Schema Markup Validator to validate.