1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/examples/with-typestyle/pages/index.js
Sahal Sajjad 136585e296 Added example: with-typestyle (#4926)
* Added example: with-typestyle

* Fixed bug: Rendering the DOM tree twice
2018-08-08 21:36:34 -07:00

12 lines
239 B
JavaScript

import React from 'react'
import { style } from 'typestyle'
const className = style({color: 'red'})
const RedText = ({text}) => (
<div className={className}>
{text}
</div>
)
export default () => <RedText text='Hello Next.js!' />