I am completely new to the gatsbyjs ecosystem, and at the same time I am learning a bit of reactjs. I recently bought an html template and was trying to use it as a UI in a gats
After a more extensive search, I found a couple of articles with a solution. This was the first approach:
import { withPrefix } from "gatsby"
import Helmet from "react-helmet"
const IndexPage = () => (
)
export default IndexPage
This is the second approach using the gatsby-ssr.js
file:
const React = require("react")
exports.onRenderBody = ({setPostBodyComponents}) => {
setPostBodyComponents([
,