Connect the <Root> component to the state
// File: /packages/my-first-theme/src/components/index.js
import React from "react"
import { connect } from "frontity"
const Root = ({ state }) => {
return (
<>
<h1>Frontity Workshop</h1>
<p>Current URL: {state.router.link}</p>
</>
)
}
export default connect(Root)

Last updated