Optionalprops: Nosto404Propsimport { useNosto404 } from '@nosto/nosto-react'
function NotFoundPage() {
useNosto404({
placements: ['notfound-nosto-1', 'notfound-popular-products']
})
return (
<div>
<h1>Page Not Found</h1>
<p>Sorry, the page you're looking for doesn't exist.</p>
<div id="notfound-popular-products" />
<div id="notfound-nosto-1" />
</div>
)
}
You can personalise your 404 error pages by using the
useNosto404hook.