Closed sethlesky closed 6 years ago
I'm adding Typography.js to a React project with the following import:
import { TypographyStyle, GoogleFont } from 'react-typography import theme from 'typography-theme-stern-grove''
Within my React component:
<head> <TypographyStyle typography={theme} /> </head>
Yet, I'm getting the following once the document renders in the browser <style id="typography.js">[object Object]</style>
<style id="typography.js">[object Object]</style>
The issue was that I needed to pass the theme to the Typography function instead of using it directly like so:
const theme = new Typography(groveTheme)
I'm adding Typography.js to a React project with the following import:
Within my React component:
Yet, I'm getting the following once the document renders in the browser
<style id="typography.js">[object Object]</style>