2828b01950
Per https://github.com/zeit/next.js/issues/12964 * with-ant-design * with-dynamic-import * with-iron-session * with-monaco-editor * with-next-page-transitions * with-react-with-styles * with-style-sheet * with-why-did-you-render Tested each example, working as intended, no additional issues presented
15 lines
262 B
JavaScript
15 lines
262 B
JavaScript
import { css, withStyles } from 'react-with-styles'
|
|
|
|
function Home({ styles }) {
|
|
return (
|
|
<div>
|
|
<h1 {...css(styles.title)}>My page</h1>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default withStyles(({ color }) => ({
|
|
title: {
|
|
color: color.primary,
|
|
},
|
|
}))(Home)
|