<html2react>. This enables us to process our content and replace HTML elements with React components.
<html2react>to replace any
<a href="...">links in our content with the
<Link>component. You'll remember that we've previously used the
<Link>component directly in our menu and in our list page.
frontity.settings.js. You should find that
"@frontity/html2react"is already included in the
packagesarray of our project.
<Root>component, and also add it to the array of
html2reactprocessors on the
librariesin as a prop and get the component ready for use.
page.js, which should ultimately look like this: